Ошибка DB:

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 `a`.`rgt` <=ORDER BY`level` DESC, `order` ASC)' at line 13

SELECT COUNT(*) FROM `mp_catalog_items` `i`WHERE`i`.`active` = 1 AND`i`.`path_id` = 155 AND`i`.`parent` in (SELECT`a`.`id`FROM`mp_catalog_articles` `a`WHERE`a`.`path_id` = 155 AND`a`.`visible` = 1 AND`a`.`parents_visible` = 1 AND`a`.`lft` >=AND `a`.`rgt` <=ORDER BY`level` DESC, `order` ASC)

/home/srv44833/regent-stroy.ru/CORE/classes/system/DBEngine.php