Error MySQL query: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') AND `date`<'1513512000' AND public AND news_id!='44966' ORDER BY `date` DESC L' at line 1. Query = 'SELECT news_id FROM `newslist` WHERE menu_id IN () AND `date`<'1513512000' AND public AND news_id!='44966' ORDER BY `date` DESC LIMIT 4'