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 'order by newstime desc limit 7,15' at line 1 select title,titleurl,pinfen from ***_ecms_movie where classid='2' and instr(type,'||')>0 and id<> order by newstime desc limit 7,15