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 1

Error number: 1064

#0 /home/www/web34/web/head/head.shop.php(89): MySQLDatabase->query('SELECT title FR...') #1 /home/www/web34/web/engine.php(217): include('/home/www/web34...') #2 /home/www/web34/web/index.php(7): include('/home/www/web34...') #3 {main}
Fatal error: Uncaught exception 'DataBaseException' with message '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 1' in /home/www/web34/web/MySQLDatabase.class.php:187 Stack trace: #0 /home/www/web34/web/head/head.shop.php(89): MySQLDatabase->query('SELECT title FR...') #1 /home/www/web34/web/engine.php(217): include('/home/www/web34...') #2 /home/www/web34/web/index.php(7): include('/home/www/web34...') #3 {main} thrown in /home/www/web34/web/MySQLDatabase.class.php on line 187