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 '-12, 12' at line 21 Full query: « SELECT SQL_CALC_FOUND_ROWS * FROM Table4 AS a WHERE 1=1 AND a.Parent_Row_ID='0' AND a.Sub_ID='1835' AND a.Sub_Component_ID='391' AND a.Checked=1 ORDER BY Date DESC LIMIT -12, 12 »