Fatal error: Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND ligt_land_id = 38' at line 1 in /www/htdocs/w01ca2f6/statistiken.php:43 Stack trace: #0 /www/htdocs/w01ca2f6/statistiken.php(43): mysqli_query(Object(mysqli), 'SELECT MAX(ligt...') #1 {main} thrown in /www/htdocs/w01ca2f6/statistiken.php on line 43