Database Error; SQL: SELECT DISTINCT `t`.* FROM `wp_posts` AS `t` LEFT JOIN `wp_term_relationships` AS `rel_category` ON `rel_category`.`object_id` = `t`.`ID` LEFT JOIN `wp_term_taxonomy` AS `rel_tt_category` ON `rel_tt_category`.`taxonomy` = 'category' AND `rel_tt_category`.`term_taxonomy_id` = `rel_category`.`term_taxonomy_id` LEFT JOIN `wp_terms` AS `category` ON `category`.`term_id` = `rel_tt_category`.`term_id` WHERE ( ( `category`.`term_id`= ) AND ( `t`.`post_type` = "partner" ) AND ( `t`.`post_status` IN ( "publish" ) ) ) ORDER BY `t`.`menu_order`, `t`.`post_title`, `t`.`post_date` LIMIT 0, 999; Response: 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 ( `t`.`post_type` = "partner" ) AND ( `t`.`post_status` IN ( "publish" ) )' at line 17