SELECT SQL_CALC_FOUND_ROWS d.intro, d.keyword, c.name, d.title, d.header, d.author, d.body, d.footer, d.resource, d.affiliation, d.publish_date, d.filepath, d.ext_mod1 FROM _document d LEFT JOIN _category c ON (d.category_id = c.category_id) WHERE d.document_active = 1 AND d.url = "2010" AND (d.category_id = )

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 ')' at line 4