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 '65789325,65770152,65757927,65749158,65746638,65746536,65745399,65745094,65727...' at line 1 AT SELECT *,fgn_news.link as url FROM fgn_news,fgn_src WHERE news_id IN(65852666,65827099,65825936,,65789325,65770152,65757927,65749158,65746638,65746536,65745399,65745094,65727216,65725252,65723140,65721891,65720415,65719595,65713545,65707949) AND fgn_news.src_id=fgn_src.src_id ORDER BY news_id DESC LIMIT 20