Database Error; SQL: SELECT
DISTINCT
`t`.*
FROM `wp_posts` AS `t`
LEFT JOIN `wp_podsrel` AS `rel_location` ON
`rel_location`.`field_id` = 4794
AND `rel_location`.`item_id` = `t`.`ID`
LEFT JOIN `wp_posts` AS `location` ON
`location`.`ID` = `rel_location`.`related_item_id`
WHERE ( ( `location`.`id` = ) AND ( `t`.`post_type` = 'accommodation' ) AND ( `t`.`post_status` IN ( 'publish' ) ) )
ORDER BY t.post_title ASC, `t`.`menu_order`, `t`.`post_title`, `t`.`post_date`; 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 ( `t`.`post_type` = 'accommodation' ) AND ( `t`.`post_status` IN ( 'pub...' at line 14