| 1 |
0.48 ms |
SELECT t0.id AS id_1, t0.title AS title_2, t0.main_image AS main_image_3, t0.description AS description_4, t0.is_active AS is_active_5, t0.price AS price_6, t0.pricing_type AS pricing_type_7, t0.created_at AS created_at_8, t0.updated_at AS updated_at_9, t0.sort_order AS sort_order_10, t0.views_count AS views_count_11, t0.likes_count AS likes_count_12, t0.purchases_count AS purchases_count_13, t0.comments_count AS comments_count_14 FROM photo t0 WHERE t0.id = ?
SELECT t0.id AS id_1, t0.title AS title_2, t0.main_image AS main_image_3, t0.description AS description_4, t0.is_active AS is_active_5, t0.price AS price_6, t0.pricing_type AS pricing_type_7, t0.created_at AS created_at_8, t0.updated_at AS updated_at_9, t0.sort_order AS sort_order_10, t0.views_count AS views_count_11, t0.likes_count AS likes_count_12, t0.purchases_count AS purchases_count_13, t0.comments_count AS comments_count_14 FROM photo t0 WHERE t0.id = '1';
|
| 2 |
0.33 ms |
SELECT t0.id AS id_1, t0.locale AS locale_2, t0.title AS title_3, t0.description AS description_4, t0.created_at AS created_at_5, t0.updated_at AS updated_at_6, t0.photo_id AS photo_id_7 FROM photo_translation t0 WHERE t0.photo_id = ?
SELECT t0.id AS id_1, t0.locale AS locale_2, t0.title AS title_3, t0.description AS description_4, t0.created_at AS created_at_5, t0.updated_at AS updated_at_6, t0.photo_id AS photo_id_7 FROM photo_translation t0 WHERE t0.photo_id = 1;
|
| 3 |
10.27 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.price AS price_3, t0.type AS type_4, t0.is_active AS is_active_5, t0.is_public AS is_public_6, t0.description AS description_7, t0.sort_order AS sort_order_8, t0.created_at AS created_at_9, t0.updated_at AS updated_at_10 FROM subscriptions t0 INNER JOIN photo_subscriptions ON t0.id = photo_subscriptions.subscription_id WHERE photo_subscriptions.photo_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.price AS price_3, t0.type AS type_4, t0.is_active AS is_active_5, t0.is_public AS is_public_6, t0.description AS description_7, t0.sort_order AS sort_order_8, t0.created_at AS created_at_9, t0.updated_at AS updated_at_10 FROM subscriptions t0 INNER JOIN photo_subscriptions ON t0.id = photo_subscriptions.subscription_id WHERE photo_subscriptions.photo_id = 1;
|
| 4 |
0.75 ms |
SELECT t0.id AS id_1, t0.locale AS locale_2, t0.name AS name_3, t0.description AS description_4, t0.subscription_id AS subscription_id_5 FROM subscription_translations t0 WHERE t0.subscription_id = ?
SELECT t0.id AS id_1, t0.locale AS locale_2, t0.name AS name_3, t0.description AS description_4, t0.subscription_id AS subscription_id_5 FROM subscription_translations t0 WHERE t0.subscription_id = 1;
|
| 5 |
0.23 ms |
SELECT t0.id AS id_1, t0.locale AS locale_2, t0.name AS name_3, t0.description AS description_4, t0.subscription_id AS subscription_id_5 FROM subscription_translations t0 WHERE t0.subscription_id = ?
SELECT t0.id AS id_1, t0.locale AS locale_2, t0.name AS name_3, t0.description AS description_4, t0.subscription_id AS subscription_id_5 FROM subscription_translations t0 WHERE t0.subscription_id = 4;
|
| 6 |
0.25 ms |
SELECT t0.id AS id_1, t0.image_path AS image_path_2, t0.alt AS alt_3, t0.sort_order AS sort_order_4, t0.created_at AS created_at_5, t0.photo_id AS photo_id_6 FROM photo_gallery t0 WHERE t0.photo_id = ? ORDER BY t0.sort_order ASC
SELECT t0.id AS id_1, t0.image_path AS image_path_2, t0.alt AS alt_3, t0.sort_order AS sort_order_4, t0.created_at AS created_at_5, t0.photo_id AS photo_id_6 FROM photo_gallery t0 WHERE t0.photo_id = 1 ORDER BY t0.sort_order ASC;
|
| 7 |
0.26 ms |
SELECT t0.id AS id_1, t0.title AS title_2, t0.image AS image_3, t0.is_active AS is_active_4, t0.created_at AS created_at_5, t0.updated_at AS updated_at_6, t0.sort_order AS sort_order_7 FROM category t0 INNER JOIN photo_categories ON t0.id = photo_categories.category_id WHERE photo_categories.photo_id = ?
SELECT t0.id AS id_1, t0.title AS title_2, t0.image AS image_3, t0.is_active AS is_active_4, t0.created_at AS created_at_5, t0.updated_at AS updated_at_6, t0.sort_order AS sort_order_7 FROM category t0 INNER JOIN photo_categories ON t0.id = photo_categories.category_id WHERE photo_categories.photo_id = 1;
|
| 8 |
3.23 ms |
SELECT p0_.id AS id_0, p0_.title AS title_1, p0_.main_image AS main_image_2, p0_.description AS description_3, p0_.is_active AS is_active_4, p0_.price AS price_5, p0_.pricing_type AS pricing_type_6, p0_.created_at AS created_at_7, p0_.updated_at AS updated_at_8, p0_.sort_order AS sort_order_9, p0_.views_count AS views_count_10, p0_.likes_count AS likes_count_11, p0_.purchases_count AS purchases_count_12, p0_.comments_count AS comments_count_13, p1_.id AS id_14, p1_.locale AS locale_15, p1_.title AS title_16, p1_.description AS description_17, p1_.created_at AS created_at_18, p1_.updated_at AS updated_at_19, c2_.id AS id_20, c2_.title AS title_21, c2_.image AS image_22, c2_.is_active AS is_active_23, c2_.created_at AS created_at_24, c2_.updated_at AS updated_at_25, c2_.sort_order AS sort_order_26, p1_.photo_id AS photo_id_27 FROM photo p0_ LEFT JOIN photo_translation p1_ ON p0_.id = p1_.photo_id AND (p1_.locale = ?) LEFT JOIN photo_categories p3_ ON p0_.id = p3_.photo_id LEFT JOIN category c2_ ON c2_.id = p3_.category_id INNER JOIN photo_categories p5_ ON p0_.id = p5_.photo_id INNER JOIN category c4_ ON c4_.id = p5_.category_id WHERE c4_.id IN (?, ?, ?) AND p0_.id <> ? AND p0_.is_active = 1 ORDER BY p0_.views_count DESC LIMIT 6
Parameters: [
"fr"
1
2
3
1
]
SELECT p0_.id AS id_0, p0_.title AS title_1, p0_.main_image AS main_image_2, p0_.description AS description_3, p0_.is_active AS is_active_4, p0_.price AS price_5, p0_.pricing_type AS pricing_type_6, p0_.created_at AS created_at_7, p0_.updated_at AS updated_at_8, p0_.sort_order AS sort_order_9, p0_.views_count AS views_count_10, p0_.likes_count AS likes_count_11, p0_.purchases_count AS purchases_count_12, p0_.comments_count AS comments_count_13, p1_.id AS id_14, p1_.locale AS locale_15, p1_.title AS title_16, p1_.description AS description_17, p1_.created_at AS created_at_18, p1_.updated_at AS updated_at_19, c2_.id AS id_20, c2_.title AS title_21, c2_.image AS image_22, c2_.is_active AS is_active_23, c2_.created_at AS created_at_24, c2_.updated_at AS updated_at_25, c2_.sort_order AS sort_order_26, p1_.photo_id AS photo_id_27 FROM photo p0_ LEFT JOIN photo_translation p1_ ON p0_.id = p1_.photo_id AND (p1_.locale = 'fr') LEFT JOIN photo_categories p3_ ON p0_.id = p3_.photo_id LEFT JOIN category c2_ ON c2_.id = p3_.category_id INNER JOIN photo_categories p5_ ON p0_.id = p5_.photo_id INNER JOIN category c4_ ON c4_.id = p5_.category_id WHERE c4_.id IN (1, 2, 3) AND p0_.id <> 1 AND p0_.is_active = 1 ORDER BY p0_.views_count DESC LIMIT 6;
|
| 9 |
0.27 ms |
SELECT t0.id AS id_1, t0.image_path AS image_path_2, t0.alt AS alt_3, t0.sort_order AS sort_order_4, t0.created_at AS created_at_5, t0.photo_id AS photo_id_6 FROM photo_gallery t0 WHERE t0.photo_id = ? ORDER BY t0.sort_order ASC
SELECT t0.id AS id_1, t0.image_path AS image_path_2, t0.alt AS alt_3, t0.sort_order AS sort_order_4, t0.created_at AS created_at_5, t0.photo_id AS photo_id_6 FROM photo_gallery t0 WHERE t0.photo_id = 2 ORDER BY t0.sort_order ASC;
|
| 10 |
0.23 ms |
SELECT t0.id AS id_1, t0.image_path AS image_path_2, t0.alt AS alt_3, t0.sort_order AS sort_order_4, t0.created_at AS created_at_5, t0.photo_id AS photo_id_6 FROM photo_gallery t0 WHERE t0.photo_id = ? ORDER BY t0.sort_order ASC
SELECT t0.id AS id_1, t0.image_path AS image_path_2, t0.alt AS alt_3, t0.sort_order AS sort_order_4, t0.created_at AS created_at_5, t0.photo_id AS photo_id_6 FROM photo_gallery t0 WHERE t0.photo_id = 4 ORDER BY t0.sort_order ASC;
|
| 11 |
0.22 ms |
SELECT t0.id AS id_1, t0.locale AS locale_2, t0.title AS title_3, t0.description AS description_4, t0.created_at AS created_at_5, t0.updated_at AS updated_at_6, t0.category_id AS category_id_7 FROM category_translation t0 WHERE t0.category_id = ?
SELECT t0.id AS id_1, t0.locale AS locale_2, t0.title AS title_3, t0.description AS description_4, t0.created_at AS created_at_5, t0.updated_at AS updated_at_6, t0.category_id AS category_id_7 FROM category_translation t0 WHERE t0.category_id = 1;
|
| 12 |
0.21 ms |
SELECT t0.id AS id_1, t0.locale AS locale_2, t0.title AS title_3, t0.description AS description_4, t0.created_at AS created_at_5, t0.updated_at AS updated_at_6, t0.category_id AS category_id_7 FROM category_translation t0 WHERE t0.category_id = ?
SELECT t0.id AS id_1, t0.locale AS locale_2, t0.title AS title_3, t0.description AS description_4, t0.created_at AS created_at_5, t0.updated_at AS updated_at_6, t0.category_id AS category_id_7 FROM category_translation t0 WHERE t0.category_id = 2;
|
| 13 |
0.21 ms |
SELECT t0.id AS id_1, t0.locale AS locale_2, t0.title AS title_3, t0.description AS description_4, t0.created_at AS created_at_5, t0.updated_at AS updated_at_6, t0.category_id AS category_id_7 FROM category_translation t0 WHERE t0.category_id = ?
SELECT t0.id AS id_1, t0.locale AS locale_2, t0.title AS title_3, t0.description AS description_4, t0.created_at AS created_at_5, t0.updated_at AS updated_at_6, t0.category_id AS category_id_7 FROM category_translation t0 WHERE t0.category_id = 3;
|
| 14 |
0.41 ms |
SELECT COUNT(c0_.id) AS sclr_0 FROM comments c0_ WHERE c0_.created_at >= ?
Parameters: [
"2026-01-22 00:00:00"
]
SELECT COUNT(c0_.id) AS sclr_0 FROM comments c0_ WHERE c0_.created_at >= '2026-01-22 00:00:00';
|
| 15 |
0.27 ms |
SELECT COUNT(c0_.id) AS sclr_0 FROM contact_message c0_ WHERE c0_.is_read = ?
SELECT COUNT(c0_.id) AS sclr_0 FROM contact_message c0_ WHERE c0_.is_read = 0;
|