Fatal error: Uncaught PDOException: 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 ' categories)' at line 1 in /home/host1344758/73700.ru/htdocs/www/frontend/models/poiskModel.php:122 Stack trace: #0 /home/host1344758/73700.ru/htdocs/www/frontend/models/poiskModel.php(122): PDO->query('SELECT * FROM c...') #1 /home/host1344758/73700.ru/htdocs/www/frontend/controllers/poiskController.php(32): searchCustomersByCat(false) #2 /home/host1344758/73700.ru/htdocs/www/frontend/components/Controller.php(17): require_once('/home/host13447...') #3 /home/host1344758/73700.ru/htdocs/www/components/Controller.php(13): require_once('/home/host13447...') #4 /home/host1344758/73700.ru/htdocs/www/index.php(22): require_once('/home/host13447...') #5 {main} thrown in /home/host1344758/73700.ru/htdocs/www/frontend/models/poiskModel.php on line 122