Fatal error:
Ошибка SQL:
Код ошибки: 1064.in D:\www\engine\db\mysql.php on line 272
Текст ошибки: «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 A.id, A.name, A.taken_info, A.url, A.type, A.date, A.visible, A.site_section, A.preview, A.is_image, A.image, COUNT(CT.id) as com_cnt FROM site_articles as A INNER JOIN site_articles_comments as CT ON CT.object_id = A.id GROUP BY A.id HAVING A.visible = 1 AND (A.site_section = '2' OR A.site_section = 0) AND com_cnt >= 2 ORDER BY com_cnt DESC LIMIT ,