preload-image

Ошибка базы данных WordPress: [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` = "cast" ) AND ( `t`.`post_status` IN ( "publish" ) ) ) ' at line 24]
SELECT DISTINCT `t`.* FROM `jey3e_posts` AS `t` LEFT JOIN `jey3e_postmeta` AS `start_at` ON `start_at`.`meta_key` = 'start_at' AND `start_at`.`post_id` = `t`.`ID` LEFT JOIN `jey3e_postmeta` AS `image_url` ON `image_url`.`meta_key` = 'image_url' AND `image_url`.`post_id` = `t`.`ID` LEFT JOIN `jey3e_podsrel` AS `rel_channel` ON `rel_channel`.`field_id` = 215 AND `rel_channel`.`item_id` = `t`.`ID` LEFT JOIN `jey3e_posts` AS `channel` ON `channel`.`ID` = `rel_channel`.`related_item_id` WHERE ( ( `start_at`.`meta_value` <"1582521961" AND `image_url`.`meta_value` !="" AND `channel`.`ID` = ) AND ( `t`.`post_type` = "cast" ) AND ( `t`.`post_status` IN ( "publish" ) ) ) ORDER BY `start_at`.`meta_value` DESC, `t`.`menu_order`, `t`.`post_title`, `t`.`post_date` LIMIT 0, 1

Database Error; SQL: SELECT DISTINCT `t`.* FROM `jey3e_posts` AS `t` LEFT JOIN `jey3e_postmeta` AS `start_at` ON `start_at`.`meta_key` = 'start_at' AND `start_at`.`post_id` = `t`.`ID` LEFT JOIN `jey3e_postmeta` AS `image_url` ON `image_url`.`meta_key` = 'image_url' AND `image_url`.`post_id` = `t`.`ID` LEFT JOIN `jey3e_podsrel` AS `rel_channel` ON `rel_channel`.`field_id` = 215 AND `rel_channel`.`item_id` = `t`.`ID` LEFT JOIN `jey3e_posts` AS `channel` ON `channel`.`ID` = `rel_channel`.`related_item_id` WHERE ( ( `start_at`.`meta_value` <"1582521961" AND `image_url`.`meta_value` !="" AND `channel`.`ID` = ) AND ( `t`.`post_type` = "cast" ) AND ( `t`.`post_status` IN ( "publish" ) ) ) ORDER BY `start_at`.`meta_value` DESC, `t`.`menu_order`, `t`.`post_title`, `t`.`post_date` LIMIT 0, 1; 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` = "cast" ) AND ( `t`.`post_status` IN ( "publish" ) ) ) ' at line 24