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 'AND jf_content.reference_id IN(3,10) AND jf_content.reference_table='k2_categ' at line 4 SQL=SELECT jf_content.reference_field, jf_content.value, jf_content.reference_id, jf_content.original_value FROM jAtrium_jf_content AS jf_content WHERE jf_content.language_id= AND jf_content.reference_id IN(3,10) AND jf_content.reference_table='k2_categories'