Ошибка 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` = "13" 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_67eef9a93be4a OR `client_impression_offer` . `city_id` = :city_id_67eef9a93be51 ) ) AND `id` = :id_67eef9a93be58 AND `impressions` . `status` = :status_67eef9a93be5b AND ( `client_impression_offer` . `status` = :status_67eef9a93be5d AND `client_impression_offer` . `available_for_sale` = :available_for_sale_67eef9a93be5f ) ORDER BY client_impression_offer.`order_in_menu` ASC
,
данные:Array
(
[:city_id_67eef9a93be4a] => 13
[:city_id_67eef9a93be51] => 10
[:id_67eef9a93be58] => 0
[:status_67eef9a93be5b] => 1
[:status_67eef9a93be5d] => 1
[:available_for_sale_67eef9a93be5f] => 1
)