您的SQL语法有一个错误;检查手册对应的MySQL服务器版本,以正确的语法使用')order by classid desc'在第1行
Select count(*) as total from ***_enewsclass where showclass=0 and classid in () order by classid desc