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 'fgn_news.src_id=fgn_src.src_id ORDER BY news_id DESC LIMIT 20' at line 1 AT SELECT *, as url FROM fgn_news,fgn_src WHERE news_id IN(66582022,66565016,66528917,66525664,66510753,66503771,66503239,66464172,66454609,66442730,66439484,66439184,66438607,66438325,66438233,66437992,66434481,66434245,66433583,66433162) fgn_news.src_id=fgn_src.src_id ORDER BY news_id DESC LIMIT 20