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 '-24,24' at line 1 in SELECT * FROM ent49 WHERE 1 AND fd654='125' AND fd735!='drp47_val_235' AND fd740!='drp59_val_271' AND (fd746='' OR fd746='') ORDER BY `fd641` DESC LIMIT -24,24