mySQL error with query select i.inumber as itemid, i.ititle as title ,i.ibody as body , i.itime from nucleus_item as i where i.iblog = 1 and i.inumber in (select itemid from tagitems where tagnumber like '%,3000000003%' ) and i.idraft <> 1 and i.itime < date_format(NOW(),'%Y-%m-%d %T') order by i.itime desc limit -10,10: 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 '-10,10' at line 1