Database Error; SQL: SELECT DISTINCT `t`.* FROM `wp_pods_crm_unit` AS `t` LEFT JOIN `wp_podsrel` AS `rel_building` ON `rel_building`.`field_id` = 788 AND `rel_building`.`item_id` = `t`.`id` LEFT JOIN `wp_pods_crm_building` AS `building` ON `building`.`id` = `rel_building`.`related_item_id` WHERE ( `building`.`ID` = breaam-case-study ) ORDER BY `t`.`code`, `t`.`id`; 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 ') ORDER BY `t`.`code`, `t`....' at line 14