Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3' in /var/www/vhosts/ftlavinotheq/htdocs/templates/vinotheque/functions/common_begin.php:126
Stack trace:
#0 /var/www/vhosts/ftlavinotheq/htdocs/templates/vinotheque/functions/common_begin.php(126): PDO->query('SELECT count(*)...')
#1 /var/www/vhosts/ftlavinotheq/htdocs/actions/common.php(30): include('/var/www/vhosts...')
#2 /var/www/vhosts/ftlavinotheq/htdocs/index.php(17): include('/var/www/vhosts...')
#3 {main}
thrown in /var/www/vhosts/ftlavinotheq/htdocs/templates/vinotheque/functions/common_begin.php on line 126