SELECT SQL_CALC_FOUND_ROWS title, url, intro, publish_date, get1, get2, get3, get4, get5, get6 FROM _document LEFT JOIN _category ON (_document.category_id = _category.category_id) WHERE _document.site_id = 3 AND _document.category_id = 464 AND _document.active = 1 AND _category.active = 1 AND _category.get1 != 'publications' ORDER BY publish_date DESC LIMIT -20, 20

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 '-20, 20' at line 24