SELECT SQL_CALC_FOUND_ROWS
*
FROM _document d
INNER JOIN _category c ON (d.category_id = c.category_id) WHERE d.document_active = 1 AND c.active = 1 AND (c.category_id = "29" AND d.site_id = "7") ORDER BY d.publish_date DESC LIMIT -3, 3
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 '-3, 3' at line 4