[e:loop={"select intro,classimg,bname,classid,classname,islast from {$dbtbpre}enewsclass where bclassid=0 and showclass=0 order by myorder,classid ASC",0,24,0}]
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 showclass=0 order by myorder,classid asc' at line 1 select intro,classimg,classid,classname from ***_enewsclass where bclassid= and showclass=0 order by myorder,classid asc