Ошибка SQL: SELECT client_impression_offer.*,`client_impression_offer` . `id` AS `id` FROM `client_impression_offer` LEFT JOIN `partners_partners` `partners` ON `partners` . `id` = `client_impression_offer` . `partner_id` RIGHT JOIN `client_impression_new` `impressions` ON `impressions` . `id` = `client_impression_offer` . `impression_id` WHERE ( ( `client_impression_offer` . `city_id` = "12" OR `client_impression_offer` . `city_id` = "10" ) ) AND `id` = "0" AND `impressions` . `status` = "1" AND ( `client_impression_offer` . `status` = "1" AND `client_impression_offer` . `available_for_sale` = "1" ) ORDER BY client_impression_offer.`order_in_menu` ASC
Запрос: SELECT client_impression_offer.*,`client_impression_offer` . `id` AS `id` FROM `client_impression_offer` LEFT JOIN `partners_partners` `partners` ON `partners` . `id` = `client_impression_offer` . `partner_id` RIGHT JOIN `client_impression_new` `impressions` ON `impressions` . `id` = `client_impression_offer` . `impression_id` WHERE ( ( `client_impression_offer` . `city_id` = :city_id_67eef9a7de7f5 OR `client_impression_offer` . `city_id` = :city_id_67eef9a7de7fc ) ) AND `id` = :id_67eef9a7de804 AND `impressions` . `status` = :status_67eef9a7de806 AND ( `client_impression_offer` . `status` = :status_67eef9a7de808 AND `client_impression_offer` . `available_for_sale` = :available_for_sale_67eef9a7de80b ) ORDER BY client_impression_offer.`order_in_menu` ASC
,
данные:Array
(
[:city_id_67eef9a7de7f5] => 12
[:city_id_67eef9a7de7fc] => 10
[:id_67eef9a7de804] => 0
[:status_67eef9a7de806] => 1
[:status_67eef9a7de808] => 1
[:available_for_sale_67eef9a7de80b] => 1
)