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 'desc limit 0,24' 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,title,titlepic,newstime,nydt,zpmc,zpzz,zpcz,zpgg,zplb,zpnd,zpjg,zpzt,ztid,jjr,lxgmlj,bz from ***_ecms_msg where classid='2536' and (zpmc like '%sam francis untitled%') order by desc limit 0,24