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 username != 'qp' and classid='12' and (rjfl='7') order by newstime desc limi' 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,eckuid,wangpan,title,ftitle,fubiaoti,newstime,titlepic,rjfl,yuyan,daxiao,yjh,down,iosdown,morepic,smalltext,diggtop from ***_ecms_azrj where AND username != 'qp' and classid='12' and (rjfl='7') order by newstime desc limit 0,24