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() AND fgn_news.src_id=fgn_src.src_id ORDER BY news_id DESC LIMIT 20