Database Error; SQL: SELECT DISTINCT `t`.* FROM `wp_posts` AS `t` LEFT JOIN `wp_podsrel` AS `rel_restaurant` ON `rel_restaurant`.`field_id` = 89 AND `rel_restaurant`.`item_id` = `t`.`ID` LEFT JOIN `wp_posts` AS `restaurant` ON `restaurant`.`ID` = `rel_restaurant`.`related_item_id` WHERE ( ( `restaurant`.`id` = "23" and t.type="rest" ) AND ( `t`.`post_type` = "map_marker" ) AND ( `t`.`post_status` IN ( "publish" ) ) ) ORDER BY `t`.`menu_order`, `t`.`post_title`, `t`.`post_date`; Response: Unknown column 't.type' in 'where clause'