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 MariaDB server version for the right syntax to use near ')' at line 1 in /var/www/arttn/data/www/arttn.ru/amigo/core/Model.php:127 Stack trace: #0 /var/www/arttn/data/www/arttn.ru/amigo/core/Model.php(127): PDO->query('SELECT COUNT(t1...') #1 /var/www/arttn/data/www/arttn.ru/frontend/controllers/CategoryController.php(133): Amigo\Core\Model->scalar('SELECT COUNT(t1...') #2 /var/www/arttn/data/www/arttn.ru/frontend/components/Router.php(97): Frontend\Controllers\CategoryController->index() #3 /var/www/arttn/data/www/arttn.ru/amigo/App.php(150): Frontend\Components\Router::parseUrl('katalog') #4 /var/www/arttn/data/www/arttn.ru/frontend/web/index.php(55): Amigo\App->run(Array) #5 {main} thrown in /var/www/arttn/data/www/arttn.ru/amigo/core/Model.php on line 127