Юридические услуги

Mysql::Error: 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 'virtual = 0) and (status_id = 100)) AND (`pages`.parent_id = 26)' at line 1: SELECT count(*) AS count_all FROM `pages` WHERE ((virtual = 0) and (status_id = 100)) AND (`pages`.parent_id = 26)