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 comnames.SpecCode = 47
LIMIT 3' at line 9 in /var/www/html/includes/speciessummary.lib.php:2787
Stack trace:
#0 /var/www/html/includes/speciessummary.lib.php(2787): mysqli->query()
#1 /var/www/html/includes/speciessummary.lib.php(2803): getComNamesFromCountry()
#2 /var/www/html/country/CountrySpeciesSummary.php(221): showComNamesListFromCountry()
#3 {main}
thrown in /var/www/html/includes/speciessummary.lib.php on line 2787