Database Error; SQL: SELECT DISTINCT `t`.* FROM `wp_posts` AS `t` WHERE ( ( t.id= and t.post_status="publish" ) AND ( `t`.`post_type` = "warband" ) ) ORDER BY `t`.`menu_order`, `t`.`post_title`, `t`.`post_date` LIMIT 0, 1; 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_status="publish" ) AND ( `t`.`post_type` = "warband" ) ) ' at line 7