You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and classid<>34 and classid<>36 and classid<>37 order by newstime DESC limit 50' at line 1
select id,classid,ttid,onclick,plnum,totaldown,newspath,filename,userid,username,firsttitle,isgood,ispic,istop,isqf,ismember,isurl,truetime,lastdotime,havehtml,groupid,userfen,titlefont,titleurl,stb,fstb,restb,keyboard,title,ftitle,newstime,titlepic,smalltext,diggtop from ***_ecms_wlcase and classid<>34 and classid<>36 and classid<>37 order by newstime DESC limit 50