SELECT SQL_CALC_FOUND_ROWS d.thumbnail, c.category_id, c.name, c.get1, c.get2, c.get3, c.get4, c.get5, c1.get2 iGet2, d.url, d.title, d.intro, d.author, i.issue_id, i.url issueURL, i.year, MONTHNAME(i.month) month, i.volume, i.number, FROM_UNIXTIME(d.publish_date, "%m%y") AS "urldate", c.description FROM _document d LEFT JOIN _category c ON (d.category_id = c.category_id) LEFT JOIN _issue i ON (d.issue_id = i.issue_id) LEFT JOIN _category c1 ON (i.category_id = c1.category_id) WHERE d.document_active = 1 AND d.url != "" AND (d.category_id = ) ORDER BY d.publish_date 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 ') ORDER BY d.publish_date DESC LIMIT -10, 10' at line 6