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 newstime desc limit 0, 100' at line 1
select version,id,title , titlepic, classid, rank,size, date_format(FROM_UNIXTIME(newstime),'%Y-%m-%d') as 'date' from ***_ecms_down where classid in ( , ) order by newstime desc limit 0, 100