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 ') ORDER BY nws_time DESC' at line 1AT SELECT nws_crc321 as nws_id,nws_src_id,nws_title1,nws_title2,nws_desc1,nws_desc2,nws_lead,nws_link,nws_img,nws_time FROM nns_news where nws_crc321 IN () ORDER BY nws_time DESC