| 1 |
0.55 ms |
SELECT COUNT(*) AS dctrn_count FROM (SELECT DISTINCT id_0 FROM (SELECT p0_.id AS id_0, p0_.name AS name_1, p0_.slug AS slug_2, p0_.description AS description_3, p0_.price AS price_4, p0_.old_price AS old_price_5, p0_.stock AS stock_6, p0_.image AS image_7, p0_.volume AS volume_8, p0_.gender AS gender_9, p0_.featured AS featured_10, p0_.created_at AS created_at_11, c1_.id AS id_12, c1_.name AS name_13, c1_.slug AS slug_14, c1_.description AS description_15, b2_.id AS id_16, b2_.name AS name_17, b2_.slug AS slug_18, b2_.description AS description_19 FROM product p0_ LEFT JOIN category c1_ ON p0_.category_id = c1_.id LEFT JOIN brand b2_ ON p0_.brand_id = b2_.id WHERE p0_.old_price IS NOT NULL AND p0_.old_price > p0_.price ORDER BY p0_.created_at DESC) dctrn_result) dctrn_table
SELECT COUNT(*) AS dctrn_count FROM (SELECT DISTINCT id_0 FROM (SELECT p0_.id AS id_0, p0_.name AS name_1, p0_.slug AS slug_2, p0_.description AS description_3, p0_.price AS price_4, p0_.old_price AS old_price_5, p0_.stock AS stock_6, p0_.image AS image_7, p0_.volume AS volume_8, p0_.gender AS gender_9, p0_.featured AS featured_10, p0_.created_at AS created_at_11, c1_.id AS id_12, c1_.name AS name_13, c1_.slug AS slug_14, c1_.description AS description_15, b2_.id AS id_16, b2_.name AS name_17, b2_.slug AS slug_18, b2_.description AS description_19 FROM product p0_ LEFT JOIN category c1_ ON p0_.category_id = c1_.id LEFT JOIN brand b2_ ON p0_.brand_id = b2_.id WHERE p0_.old_price IS NOT NULL AND p0_.old_price > p0_.price ORDER BY p0_.created_at DESC) dctrn_result) dctrn_table;
|
| 2 |
0.18 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.slug AS slug_3, t0.description AS description_4 FROM category t0 ORDER BY t0.id ASC
SELECT t0.id AS id_1, t0.name AS name_2, t0.slug AS slug_3, t0.description AS description_4 FROM category t0 ORDER BY t0.id ASC;
|
| 3 |
0.16 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.slug AS slug_3, t0.description AS description_4 FROM brand t0
SELECT t0.id AS id_1, t0.name AS name_2, t0.slug AS slug_3, t0.description AS description_4 FROM brand t0;
|
| 4 |
0.18 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.slug AS slug_3, t0.description AS description_4 FROM category t0 ORDER BY t0.id ASC
SELECT t0.id AS id_1, t0.name AS name_2, t0.slug AS slug_3, t0.description AS description_4 FROM category t0 ORDER BY t0.id ASC;
|
| 5 |
0.37 ms |
SELECT DISTINCT id_0 FROM (SELECT DISTINCT id_0, created_at_11 FROM (SELECT p0_.id AS id_0, p0_.name AS name_1, p0_.slug AS slug_2, p0_.description AS description_3, p0_.price AS price_4, p0_.old_price AS old_price_5, p0_.stock AS stock_6, p0_.image AS image_7, p0_.volume AS volume_8, p0_.gender AS gender_9, p0_.featured AS featured_10, p0_.created_at AS created_at_11, c1_.id AS id_12, c1_.name AS name_13, c1_.slug AS slug_14, c1_.description AS description_15, b2_.id AS id_16, b2_.name AS name_17, b2_.slug AS slug_18, b2_.description AS description_19 FROM product p0_ LEFT JOIN category c1_ ON p0_.category_id = c1_.id LEFT JOIN brand b2_ ON p0_.brand_id = b2_.id WHERE p0_.old_price IS NOT NULL AND p0_.old_price > p0_.price) dctrn_result_inner ORDER BY created_at_11 DESC) dctrn_result LIMIT 9
SELECT DISTINCT id_0 FROM (SELECT DISTINCT id_0, created_at_11 FROM (SELECT p0_.id AS id_0, p0_.name AS name_1, p0_.slug AS slug_2, p0_.description AS description_3, p0_.price AS price_4, p0_.old_price AS old_price_5, p0_.stock AS stock_6, p0_.image AS image_7, p0_.volume AS volume_8, p0_.gender AS gender_9, p0_.featured AS featured_10, p0_.created_at AS created_at_11, c1_.id AS id_12, c1_.name AS name_13, c1_.slug AS slug_14, c1_.description AS description_15, b2_.id AS id_16, b2_.name AS name_17, b2_.slug AS slug_18, b2_.description AS description_19 FROM product p0_ LEFT JOIN category c1_ ON p0_.category_id = c1_.id LEFT JOIN brand b2_ ON p0_.brand_id = b2_.id WHERE p0_.old_price IS NOT NULL AND p0_.old_price > p0_.price) dctrn_result_inner ORDER BY created_at_11 DESC) dctrn_result LIMIT 9;
|
| 6 |
0.42 ms |
SELECT p0_.id AS id_0, p0_.name AS name_1, p0_.slug AS slug_2, p0_.description AS description_3, p0_.price AS price_4, p0_.old_price AS old_price_5, p0_.stock AS stock_6, p0_.image AS image_7, p0_.volume AS volume_8, p0_.gender AS gender_9, p0_.featured AS featured_10, p0_.created_at AS created_at_11, c1_.id AS id_12, c1_.name AS name_13, c1_.slug AS slug_14, c1_.description AS description_15, b2_.id AS id_16, b2_.name AS name_17, b2_.slug AS slug_18, b2_.description AS description_19, p0_.category_id AS category_id_20, p0_.brand_id AS brand_id_21 FROM product p0_ LEFT JOIN category c1_ ON p0_.category_id = c1_.id LEFT JOIN brand b2_ ON p0_.brand_id = b2_.id WHERE p0_.old_price IS NOT NULL AND p0_.old_price > p0_.price AND p0_.id IN (?, ?, ?, ?, ?, ?) ORDER BY p0_.created_at DESC
Parameters: [
1
4
8
10
13
16
]
SELECT p0_.id AS id_0, p0_.name AS name_1, p0_.slug AS slug_2, p0_.description AS description_3, p0_.price AS price_4, p0_.old_price AS old_price_5, p0_.stock AS stock_6, p0_.image AS image_7, p0_.volume AS volume_8, p0_.gender AS gender_9, p0_.featured AS featured_10, p0_.created_at AS created_at_11, c1_.id AS id_12, c1_.name AS name_13, c1_.slug AS slug_14, c1_.description AS description_15, b2_.id AS id_16, b2_.name AS name_17, b2_.slug AS slug_18, b2_.description AS description_19, p0_.category_id AS category_id_20, p0_.brand_id AS brand_id_21 FROM product p0_ LEFT JOIN category c1_ ON p0_.category_id = c1_.id LEFT JOIN brand b2_ ON p0_.brand_id = b2_.id WHERE p0_.old_price IS NOT NULL AND p0_.old_price > p0_.price AND p0_.id IN (1, 4, 8, 10, 13, 16) ORDER BY p0_.created_at DESC;
|