Fatal error: Not open query. Statement error: SELECT a.id, a.description_ru AS authorDescription, CONCAT_WS(' ', a.name_ru, a.lastname_ru) AS authorName, a.linkname AS authorLinkname, ni.news_id AS currNewsId FROM core_news_info ni LEFT JOIN core_author a ON a.id = ni.author_id WHERE ni.active = 1 AND ni.news_id = AND a.id != 17 Error: 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 a.id != 17' at line 10You 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.id != 17' at line 101064 in /var/www/fondsk/data/www/fondsk.ru/libs/xx/class.Database.php on line 109