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