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 ((STOCKS.Level)='species in general' Or (STOCKS.Level)='subspecies in g...' at line 1 in /var/www/html/webservice/Occurrence/PointData.php:99 Stack trace: #0 /var/www/html/webservice/Occurrence/PointData.php(99): mysqli->query() #1 {main} thrown in /var/www/html/webservice/Occurrence/PointData.php on line 99