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 n.newstime desc limit 0, 25' at line 1
select n.id, n.newstime, smalltext, title , titlepic, n.classid, writer from ***_ecms_news as n inner join ***_ecms_news_data_1 as nd on n.id=nd.id where n.classid in ( ) order by n.newstime desc limit 0, 25