Tours urban area planning agency

Database Error; SQL: SELECT DISTINCT `t`.* FROM `wp_posts` AS `t` LEFT JOIN `wp_term_relationships` AS `rel_category` ON `rel_category`.`object_id` = `t`.`ID` LEFT JOIN `wp_term_taxonomy` AS `rel_tt_category` ON `rel_tt_category`.`taxonomy` = 'category' AND `rel_tt_category`.`term_taxonomy_id` = `rel_category`.`term_taxonomy_id` LEFT JOIN `wp_terms` AS `category` ON `category`.`term_id` = `rel_tt_category`.`term_id` LEFT JOIN `wp_term_relationships` AS `polylang_languages` ON `polylang_languages`.`object_id` = `t`.`ID` AND `polylang_languages`.`term_taxonomy_id` = 20 WHERE ( ( `category`.`term_id` = ) AND ( `t`.`post_type` = "event" ) AND ( `polylang_languages`.`object_id` IS NOT NULL ) AND ( `t`.`post_status` IN ( "publish" ) ) ) ORDER BY `t`.`menu_order`, `t`.`post_title`, `t`.`post_date` LIMIT 0, 3; 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_type` = "event" ) AND ( `polylang_languages`.`object_id` IS NO' at line 22