Database Error; SQL: SELECT DISTINCT `t`.*, `d`.* FROM `wp_ychtposts` AS `t` LEFT JOIN `wp_ychtpodsrel` AS `rel_person_charter` ON `rel_person_charter`.`field_id` = 1034 AND `rel_person_charter`.`item_id` = `t`.`ID` LEFT JOIN `wp_ychtposts` AS `person_charter` ON `person_charter`.`ID` = `rel_person_charter`.`related_item_id` LEFT JOIN `wp_ychtpods_person` AS `d` ON `d`.`id` = `t`.`ID` WHERE ( ( `person_charter`.`ID` = AND person_role != "Base Manager" ) AND ( `t`.`post_type` = "person" ) AND ( `t`.`post_status` IN ( "publish" ) ) ) ORDER BY `t`.`menu_order`, `t`.`post_title`, `t`.`post_date` LIMIT 0, 15; Response: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND person_role != "Base Manager" ) AND ( `t`.`post_type` = "person" ) AND ( ...' at line 15