1 |
4.44 ms |
SELECT p0_.id AS id_0, p0_.price AS price_1, p0_.created_at AS created_at_2, p0_.updated_at AS updated_at_3, p0_.reference AS reference_4, p0_.image AS image_5, p0_.hidden AS hidden_6, p1_.id AS id_7, p1_.locale AS locale_8, p1_.name AS name_9, p1_.slug AS slug_10, p1_.description AS description_11, p1_.specifications AS specifications_12, p1_.directions AS directions_13, a2_.id AS id_14, a2_.contact_phone_number AS contact_phone_number_15, a2_.contact_address AS contact_address_16, a2_.billing_email AS billing_email_17, a2_.billing_name AS billing_name_18, a2_.billing_phone_number AS billing_phone_number_19, a2_.billing_address AS billing_address_20, a2_.nif AS nif_21, a2_.updated_at AS updated_at_22, a2_.preferences AS preferences_23, p0_.brand_id AS brand_id_24, p1_.product_id AS product_id_25, a2_.user_id AS user_id_26 FROM products p0_ INNER JOIN brands b3_ ON p0_.brand_id = b3_.id INNER JOIN products_translations p1_ ON p0_.id = p1_.product_id LEFT JOIN favorite_products f4_ ON p0_.id = f4_.product_id LEFT JOIN accounts a2_ ON a2_.id = f4_.account_id WHERE p1_.locale = ? AND p0_.hidden = 0 ORDER BY b3_.display_order ASC, p1_.name ASC
SELECT p0_.id AS id_0, p0_.price AS price_1, p0_.created_at AS created_at_2, p0_.updated_at AS updated_at_3, p0_.reference AS reference_4, p0_.image AS image_5, p0_.hidden AS hidden_6, p1_.id AS id_7, p1_.locale AS locale_8, p1_.name AS name_9, p1_.slug AS slug_10, p1_.description AS description_11, p1_.specifications AS specifications_12, p1_.directions AS directions_13, a2_.id AS id_14, a2_.contact_phone_number AS contact_phone_number_15, a2_.contact_address AS contact_address_16, a2_.billing_email AS billing_email_17, a2_.billing_name AS billing_name_18, a2_.billing_phone_number AS billing_phone_number_19, a2_.billing_address AS billing_address_20, a2_.nif AS nif_21, a2_.updated_at AS updated_at_22, a2_.preferences AS preferences_23, p0_.brand_id AS brand_id_24, p1_.product_id AS product_id_25, a2_.user_id AS user_id_26 FROM products p0_ INNER JOIN brands b3_ ON p0_.brand_id = b3_.id INNER JOIN products_translations p1_ ON p0_.id = p1_.product_id LEFT JOIN favorite_products f4_ ON p0_.id = f4_.product_id LEFT JOIN accounts a2_ ON a2_.id = f4_.account_id WHERE p1_.locale = 'en' AND p0_.hidden = 0 ORDER BY b3_.display_order ASC, p1_.name ASC;
|