PHP error happened

Technical information
Error type256
Error descriptionYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'count(*)' at line 1
Error file/var/www/clients/client8/web9/web/probatesearch1/include/dbconnection.php
Error line40
SQL query

This is a general error. It occurs when there is an error in event code or in SQL.

Send your SQL or event code along with full error message