select url,id,parent,type,link,title from pages where `parent` = and `deleted` != 1 and `type` != 7 order by `id` asc
#0 /var/www/sova31/data/www/selena-oskol.ru/Sova/Lib/Mysql.php(65): PDOStatement->execute() #1 /var/www/sova31/data/www/selena-oskol.ru/Sova/Objects/Content.php(161): Sova\Lib\Mysql->query(' select url,id,...') #2 /var/www/sova31/data/www/selena-oskol.ru/html/template/menu.php(7): Sova\Objects\Content->all('url,id,parent,t...', 'where `parent` ...') #3 /var/www/sova31/data/www/selena-oskol.ru/html/template/main.php(71): menu(NULL) #4 /var/www/sova31/data/www/selena-oskol.ru/Sova/Lib/Module.php(69): include_once('/var/www/sova31...') #5 /var/www/sova31/data/www/selena-oskol.ru/Sova/Lib/Module.php(33): Sova\Lib\Module->done() #6 /var/www/sova31/data/www/selena-oskol.ru/Sova/modules/content.php(784): Sova\Lib\Module->__destruct() #7 /var/www/sova31/data/www/selena-oskol.ru/index.php(33): include_once('/var/www/sova31...') #8 {main}
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 'and `deleted` != 1 and `type` != 7 order by `id` asc' at line 1