SQLSTATE[42601]: Syntax error: 7 ОШИБКА: ошибка синтаксиса (примерное положение: "AND") LINE 1: ...M categories c, url_alias ua WHERE c.parent_id = AND ua.act... ^
#0 [internal function]: PDO->query('SELECT c.id, c....')
#1 [internal function]: Phalcon\Db\Adapter\Pdo->query('SELECT c.id, c....', NULL, NULL)
#2 /usr/local/www/glav-pechat.pro/app/controllers/PagegenController.php(157): Phalcon\Db\Adapter->fetchAll('SELECT c.id, c....', 2)
#3 [internal function]: PagegenController->categoryAction(3)
#4 [internal function]: Phalcon\Dispatcher->callActionMethod(Object(PagegenController), 'categoryAction', Array)
#5 [internal function]: Phalcon\Dispatcher->_dispatch()
#6 [internal function]: Phalcon\Dispatcher->dispatch()
#7 /usr/local/www/glav-pechat.pro/public/index.php(32): Phalcon\Mvc\Application->handle()
#8 {main}