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 '' at line 1

SQL:
SELECT count(*) cnt FROM cms_pages WHERE page_path = '/otkatnye/vorota//' AND site_id =

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 '' at line 1

SQL:
SELECT p.*, c.* FROM cms_pages p, cms_pages_content c WHERE p.page_id = c.page_id AND c.lang = 'ru' AND p.page_path = '/otkatnye/vorota/' AND p.site_id =

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 site_id =' at line 1

SQL:
SELECT count(*) cnt FROM cms_pages WHERE page_parent = AND site_id =

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 group_id = 2' at line 1

SQL:
SELECT count(*) cnt FROM cms_pages_access WHERE page_id = AND group_id = 2