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 fgn_news.src_id=fgn_src.src_id ORDER BY news_id DESC LIMIT 20' at line 1 AT SELECT *,fgn_news.link as url FROM fgn_news,fgn_src WHERE news_id IN(62157075,62155758,41532408,41521893,41520644,41519851,41519464,41440711,41422983,41309453,41289449,34089160,34067574,32970547,29755475,29755220,29750518,) AND fgn_news.src_id=fgn_src.src_id ORDER BY news_id DESC LIMIT 20