1
9.35 ms
SELECT t0 . id AS id_1 , t0 . cod AS cod_2 , t0 . reference AS reference_3 , t0 . name AS name_4 , t0 . description AS description_5 , t0 . slug AS slug_6 , t0 . stock AS stock_7 , t0 . pvp AS pvp_8 , t0 . discount AS discount_9 , t0 . net_price AS net_price_10 , t0 . extra AS extra_11 , t0 . images AS images_12 , t0 . created_at AS created_at_13 , t0 . updated_at AS updated_at_14 , t0 . views AS views_15 , t0 . position AS position_16 , t0 . active AS active_17 , t0 . meta_title AS meta_title_18 , t0 . meta_description AS meta_description_19 , t0 . meta_keywords AS meta_keywords_20 , t0 . brand_id AS brand_id_21 FROM product t0 WHERE t0 . slug = ? LIMIT 1
Parameters :
[
"mo5128-max-amp-co-mod-mo5128 "
]
SELECT t0 . id AS id_1 , t0 . cod AS cod_2 , t0 . reference AS reference_3 , t0 . name AS name_4 , t0 . description AS description_5 , t0 . slug AS slug_6 , t0 . stock AS stock_7 , t0 . pvp AS pvp_8 , t0 . discount AS discount_9 , t0 . net_price AS net_price_10 , t0 . extra AS extra_11 , t0 . images AS images_12 , t0 . created_at AS created_at_13 , t0 . updated_at AS updated_at_14 , t0 . views AS views_15 , t0 . position AS position_16 , t0 . active AS active_17 , t0 . meta_title AS meta_title_18 , t0 . meta_description AS meta_description_19 , t0 . meta_keywords AS meta_keywords_20 , t0 . brand_id AS brand_id_21 FROM product t0 WHERE t0 . slug = 'mo5128-max-amp-co-mod-mo5128' LIMIT 1 ;
Copy
2
1.49 ms
"START TRANSACTION"
"START TRANSACTION" ;
Copy
3
0.18 ms
UPDATE product SET views = ? , updated_at = ? WHERE id = ?
Parameters :
[
19
"2026-08-29 14:44:33 "
11795
]
UPDATE product SET views = 19 , updated_at = '2026-08-29 14:44:33' WHERE id = 11795 ;
Copy
4
0.48 ms
"COMMIT"
5
36.06 ms
SELECT c0_ . id AS id_0 , c0_ . name AS name_1 , c0_ . slug AS slug_2 , c0_ . image AS image_3 , c0_ . active AS active_4 , c0_ . position AS position_5 , c0_ . meta_title AS meta_title_6 , c0_ . meta_description AS meta_description_7 , c0_ . meta_keywords AS meta_keywords_8 , COUNT (p1_ . id ) AS sclr_9 , c0_ . parent_id AS parent_id_10 FROM category c0_ LEFT JOIN product_category p2_ ON c0_ . id = p2_ . category_id LEFT JOIN product p1_ ON p1_ . id = p2_ . product_id WHERE c0_ . active = ? AND c0_ . parent_id IS NULL GROUP BY c0_ . id ORDER BY c0_ . position ASC , c0_ . name ASC
SELECT c0_ . id AS id_0 , c0_ . name AS name_1 , c0_ . slug AS slug_2 , c0_ . image AS image_3 , c0_ . active AS active_4 , c0_ . position AS position_5 , c0_ . meta_title AS meta_title_6 , c0_ . meta_description AS meta_description_7 , c0_ . meta_keywords AS meta_keywords_8 , COUNT (p1_ . id ) AS sclr_9 , c0_ . parent_id AS parent_id_10 FROM category c0_ LEFT JOIN product_category p2_ ON c0_ . id = p2_ . category_id LEFT JOIN product p1_ ON p1_ . id = p2_ . product_id WHERE c0_ . active = 1 AND c0_ . parent_id IS NULL GROUP BY c0_ . id ORDER BY c0_ . position ASC , c0_ . name ASC ;
Copy
6
5.65 ms
SELECT b0_ . id AS id_0 , b0_ . name AS name_1 , b0_ . slug AS slug_2 , b0_ . position AS position_3 , COUNT (p1_ . id ) AS sclr_4 FROM brand b0_ LEFT JOIN product p1_ ON b0_ . id = p1_ . brand_id GROUP BY b0_ . id ORDER BY b0_ . position ASC , b0_ . name ASC
SELECT b0_ . id AS id_0 , b0_ . name AS name_1 , b0_ . slug AS slug_2 , b0_ . position AS position_3 , COUNT (p1_ . id ) AS sclr_4 FROM brand b0_ LEFT JOIN product p1_ ON b0_ . id = p1_ . brand_id GROUP BY b0_ . id ORDER BY b0_ . position ASC , b0_ . name ASC ;
Copy
7
12.19 ms
SELECT p0_ . id AS id_0 FROM product p0_ WHERE p0_ . active = ? AND p0_ . images IS NOT NULL AND p0_ . images < > '[]'
SELECT p0_ . id AS id_0 FROM product p0_ WHERE p0_ . active = 1 AND p0_ . images IS NOT NULL AND p0_ . images < > '[]' ;
Copy
8
1.45 ms
SELECT p0_ . id AS id_0 , p0_ . cod AS cod_1 , p0_ . reference AS reference_2 , p0_ . name AS name_3 , p0_ . description AS description_4 , p0_ . slug AS slug_5 , p0_ . stock AS stock_6 , p0_ . pvp AS pvp_7 , p0_ . discount AS discount_8 , p0_ . net_price AS net_price_9 , p0_ . extra AS extra_10 , p0_ . images AS images_11 , p0_ . created_at AS created_at_12 , p0_ . updated_at AS updated_at_13 , p0_ . views AS views_14 , p0_ . position AS position_15 , p0_ . active AS active_16 , p0_ . meta_title AS meta_title_17 , p0_ . meta_description AS meta_description_18 , p0_ . meta_keywords AS meta_keywords_19 , p0_ . brand_id AS brand_id_20 FROM product p0_ WHERE p0_ . id IN (? , ? , ? , ? , ? , ? , ? , ? )
Parameters :
[
3044
19057
16364
7685
13038
13585
27630
7874
]
SELECT p0_ . id AS id_0 , p0_ . cod AS cod_1 , p0_ . reference AS reference_2 , p0_ . name AS name_3 , p0_ . description AS description_4 , p0_ . slug AS slug_5 , p0_ . stock AS stock_6 , p0_ . pvp AS pvp_7 , p0_ . discount AS discount_8 , p0_ . net_price AS net_price_9 , p0_ . extra AS extra_10 , p0_ . images AS images_11 , p0_ . created_at AS created_at_12 , p0_ . updated_at AS updated_at_13 , p0_ . views AS views_14 , p0_ . position AS position_15 , p0_ . active AS active_16 , p0_ . meta_title AS meta_title_17 , p0_ . meta_description AS meta_description_18 , p0_ . meta_keywords AS meta_keywords_19 , p0_ . brand_id AS brand_id_20 FROM product p0_ WHERE p0_ . id IN (3044 , 19057 , 16364 , 7685 , 13038 , 13585 , 27630 , 7874 );
Copy
9
12.32 ms
SELECT p0_ . id AS id_0 FROM product p0_ WHERE p0_ . active = ? AND p0_ . images IS NOT NULL AND p0_ . images < > '[]'
SELECT p0_ . id AS id_0 FROM product p0_ WHERE p0_ . active = 1 AND p0_ . images IS NOT NULL AND p0_ . images < > '[]' ;
Copy
10
0.26 ms
SELECT p0_ . id AS id_0 , p0_ . cod AS cod_1 , p0_ . reference AS reference_2 , p0_ . name AS name_3 , p0_ . description AS description_4 , p0_ . slug AS slug_5 , p0_ . stock AS stock_6 , p0_ . pvp AS pvp_7 , p0_ . discount AS discount_8 , p0_ . net_price AS net_price_9 , p0_ . extra AS extra_10 , p0_ . images AS images_11 , p0_ . created_at AS created_at_12 , p0_ . updated_at AS updated_at_13 , p0_ . views AS views_14 , p0_ . position AS position_15 , p0_ . active AS active_16 , p0_ . meta_title AS meta_title_17 , p0_ . meta_description AS meta_description_18 , p0_ . meta_keywords AS meta_keywords_19 , p0_ . brand_id AS brand_id_20 FROM product p0_ WHERE p0_ . id IN (? )
SELECT p0_ . id AS id_0 , p0_ . cod AS cod_1 , p0_ . reference AS reference_2 , p0_ . name AS name_3 , p0_ . description AS description_4 , p0_ . slug AS slug_5 , p0_ . stock AS stock_6 , p0_ . pvp AS pvp_7 , p0_ . discount AS discount_8 , p0_ . net_price AS net_price_9 , p0_ . extra AS extra_10 , p0_ . images AS images_11 , p0_ . created_at AS created_at_12 , p0_ . updated_at AS updated_at_13 , p0_ . views AS views_14 , p0_ . position AS position_15 , p0_ . active AS active_16 , p0_ . meta_title AS meta_title_17 , p0_ . meta_description AS meta_description_18 , p0_ . meta_keywords AS meta_keywords_19 , p0_ . brand_id AS brand_id_20 FROM product p0_ WHERE p0_ . id IN (8176 );
Copy
11
0.26 ms
SELECT t0 . id AS id_1 , t0 . name AS name_2 , t0 . slug AS slug_3 , t0 . image AS image_4 , t0 . active AS active_5 , t0 . position AS position_6 , t0 . meta_title AS meta_title_7 , t0 . meta_description AS meta_description_8 , t0 . meta_keywords AS meta_keywords_9 , t0 . parent_id AS parent_id_10 FROM category t0 INNER JOIN product_category ON t0 . id = product_category . category_id WHERE product_category . product_id = ?
SELECT t0 . id AS id_1 , t0 . name AS name_2 , t0 . slug AS slug_3 , t0 . image AS image_4 , t0 . active AS active_5 , t0 . position AS position_6 , t0 . meta_title AS meta_title_7 , t0 . meta_description AS meta_description_8 , t0 . meta_keywords AS meta_keywords_9 , t0 . parent_id AS parent_id_10 FROM category t0 INNER JOIN product_category ON t0 . id = product_category . category_id WHERE product_category . product_id = 11795 ;
Copy
12
37.68 ms
SELECT c0_ . id AS id_0 , c0_ . name AS name_1 , c0_ . slug AS slug_2 , c0_ . image AS image_3 , c0_ . active AS active_4 , c0_ . position AS position_5 , c0_ . meta_title AS meta_title_6 , c0_ . meta_description AS meta_description_7 , c0_ . meta_keywords AS meta_keywords_8 , COUNT (p1_ . id ) AS sclr_9 , c0_ . parent_id AS parent_id_10 FROM category c0_ LEFT JOIN product_category p2_ ON c0_ . id = p2_ . category_id LEFT JOIN product p1_ ON p1_ . id = p2_ . product_id WHERE c0_ . active = ? AND c0_ . parent_id IS NULL GROUP BY c0_ . id ORDER BY c0_ . position ASC , c0_ . name ASC
SELECT c0_ . id AS id_0 , c0_ . name AS name_1 , c0_ . slug AS slug_2 , c0_ . image AS image_3 , c0_ . active AS active_4 , c0_ . position AS position_5 , c0_ . meta_title AS meta_title_6 , c0_ . meta_description AS meta_description_7 , c0_ . meta_keywords AS meta_keywords_8 , COUNT (p1_ . id ) AS sclr_9 , c0_ . parent_id AS parent_id_10 FROM category c0_ LEFT JOIN product_category p2_ ON c0_ . id = p2_ . category_id LEFT JOIN product p1_ ON p1_ . id = p2_ . product_id WHERE c0_ . active = 1 AND c0_ . parent_id IS NULL GROUP BY c0_ . id ORDER BY c0_ . position ASC , c0_ . name ASC ;
Copy
13
27.80 ms
SELECT c0_ . id AS id_0 , c0_ . name AS name_1 , c0_ . slug AS slug_2 , c0_ . image AS image_3 , c0_ . active AS active_4 , c0_ . position AS position_5 , c0_ . meta_title AS meta_title_6 , c0_ . meta_description AS meta_description_7 , c0_ . meta_keywords AS meta_keywords_8 , COUNT (p1_ . id ) AS sclr_9 , c0_ . parent_id AS parent_id_10 FROM category c0_ LEFT JOIN product_category p2_ ON c0_ . id = p2_ . category_id LEFT JOIN product p1_ ON p1_ . id = p2_ . product_id WHERE c0_ . active = ? AND c0_ . parent_id IS NULL GROUP BY c0_ . id ORDER BY c0_ . position ASC , c0_ . name ASC
SELECT c0_ . id AS id_0 , c0_ . name AS name_1 , c0_ . slug AS slug_2 , c0_ . image AS image_3 , c0_ . active AS active_4 , c0_ . position AS position_5 , c0_ . meta_title AS meta_title_6 , c0_ . meta_description AS meta_description_7 , c0_ . meta_keywords AS meta_keywords_8 , COUNT (p1_ . id ) AS sclr_9 , c0_ . parent_id AS parent_id_10 FROM category c0_ LEFT JOIN product_category p2_ ON c0_ . id = p2_ . category_id LEFT JOIN product p1_ ON p1_ . id = p2_ . product_id WHERE c0_ . active = 1 AND c0_ . parent_id IS NULL GROUP BY c0_ . id ORDER BY c0_ . position ASC , c0_ . name ASC ;
Copy
14
0.18 ms
SELECT t0 . id AS id_1 , t0 . cod AS cod_2 , t0 . reference AS reference_3 , t0 . name AS name_4 , t0 . description AS description_5 , t0 . slug AS slug_6 , t0 . stock AS stock_7 , t0 . pvp AS pvp_8 , t0 . discount AS discount_9 , t0 . net_price AS net_price_10 , t0 . extra AS extra_11 , t0 . images AS images_12 , t0 . created_at AS created_at_13 , t0 . updated_at AS updated_at_14 , t0 . views AS views_15 , t0 . position AS position_16 , t0 . active AS active_17 , t0 . meta_title AS meta_title_18 , t0 . meta_description AS meta_description_19 , t0 . meta_keywords AS meta_keywords_20 , t0 . brand_id AS brand_id_21 FROM product t0 WHERE t0 . id = ?
SELECT t0 . id AS id_1 , t0 . cod AS cod_2 , t0 . reference AS reference_3 , t0 . name AS name_4 , t0 . description AS description_5 , t0 . slug AS slug_6 , t0 . stock AS stock_7 , t0 . pvp AS pvp_8 , t0 . discount AS discount_9 , t0 . net_price AS net_price_10 , t0 . extra AS extra_11 , t0 . images AS images_12 , t0 . created_at AS created_at_13 , t0 . updated_at AS updated_at_14 , t0 . views AS views_15 , t0 . position AS position_16 , t0 . active AS active_17 , t0 . meta_title AS meta_title_18 , t0 . meta_description AS meta_description_19 , t0 . meta_keywords AS meta_keywords_20 , t0 . brand_id AS brand_id_21 FROM product t0 WHERE t0 . id = 21599 ;
Copy
15
0.15 ms
SELECT t0 . id AS id_1 , t0 . cod AS cod_2 , t0 . reference AS reference_3 , t0 . name AS name_4 , t0 . description AS description_5 , t0 . slug AS slug_6 , t0 . stock AS stock_7 , t0 . pvp AS pvp_8 , t0 . discount AS discount_9 , t0 . net_price AS net_price_10 , t0 . extra AS extra_11 , t0 . images AS images_12 , t0 . created_at AS created_at_13 , t0 . updated_at AS updated_at_14 , t0 . views AS views_15 , t0 . position AS position_16 , t0 . active AS active_17 , t0 . meta_title AS meta_title_18 , t0 . meta_description AS meta_description_19 , t0 . meta_keywords AS meta_keywords_20 , t0 . brand_id AS brand_id_21 FROM product t0 WHERE t0 . id = ?
SELECT t0 . id AS id_1 , t0 . cod AS cod_2 , t0 . reference AS reference_3 , t0 . name AS name_4 , t0 . description AS description_5 , t0 . slug AS slug_6 , t0 . stock AS stock_7 , t0 . pvp AS pvp_8 , t0 . discount AS discount_9 , t0 . net_price AS net_price_10 , t0 . extra AS extra_11 , t0 . images AS images_12 , t0 . created_at AS created_at_13 , t0 . updated_at AS updated_at_14 , t0 . views AS views_15 , t0 . position AS position_16 , t0 . active AS active_17 , t0 . meta_title AS meta_title_18 , t0 . meta_description AS meta_description_19 , t0 . meta_keywords AS meta_keywords_20 , t0 . brand_id AS brand_id_21 FROM product t0 WHERE t0 . id = 19162 ;
Copy
16
0.13 ms
SELECT t0 . id AS id_1 , t0 . cod AS cod_2 , t0 . reference AS reference_3 , t0 . name AS name_4 , t0 . description AS description_5 , t0 . slug AS slug_6 , t0 . stock AS stock_7 , t0 . pvp AS pvp_8 , t0 . discount AS discount_9 , t0 . net_price AS net_price_10 , t0 . extra AS extra_11 , t0 . images AS images_12 , t0 . created_at AS created_at_13 , t0 . updated_at AS updated_at_14 , t0 . views AS views_15 , t0 . position AS position_16 , t0 . active AS active_17 , t0 . meta_title AS meta_title_18 , t0 . meta_description AS meta_description_19 , t0 . meta_keywords AS meta_keywords_20 , t0 . brand_id AS brand_id_21 FROM product t0 WHERE t0 . id = ?
SELECT t0 . id AS id_1 , t0 . cod AS cod_2 , t0 . reference AS reference_3 , t0 . name AS name_4 , t0 . description AS description_5 , t0 . slug AS slug_6 , t0 . stock AS stock_7 , t0 . pvp AS pvp_8 , t0 . discount AS discount_9 , t0 . net_price AS net_price_10 , t0 . extra AS extra_11 , t0 . images AS images_12 , t0 . created_at AS created_at_13 , t0 . updated_at AS updated_at_14 , t0 . views AS views_15 , t0 . position AS position_16 , t0 . active AS active_17 , t0 . meta_title AS meta_title_18 , t0 . meta_description AS meta_description_19 , t0 . meta_keywords AS meta_keywords_20 , t0 . brand_id AS brand_id_21 FROM product t0 WHERE t0 . id = 9189 ;
Copy
17
0.13 ms
SELECT t0 . id AS id_1 , t0 . cod AS cod_2 , t0 . reference AS reference_3 , t0 . name AS name_4 , t0 . description AS description_5 , t0 . slug AS slug_6 , t0 . stock AS stock_7 , t0 . pvp AS pvp_8 , t0 . discount AS discount_9 , t0 . net_price AS net_price_10 , t0 . extra AS extra_11 , t0 . images AS images_12 , t0 . created_at AS created_at_13 , t0 . updated_at AS updated_at_14 , t0 . views AS views_15 , t0 . position AS position_16 , t0 . active AS active_17 , t0 . meta_title AS meta_title_18 , t0 . meta_description AS meta_description_19 , t0 . meta_keywords AS meta_keywords_20 , t0 . brand_id AS brand_id_21 FROM product t0 WHERE t0 . id = ?
SELECT t0 . id AS id_1 , t0 . cod AS cod_2 , t0 . reference AS reference_3 , t0 . name AS name_4 , t0 . description AS description_5 , t0 . slug AS slug_6 , t0 . stock AS stock_7 , t0 . pvp AS pvp_8 , t0 . discount AS discount_9 , t0 . net_price AS net_price_10 , t0 . extra AS extra_11 , t0 . images AS images_12 , t0 . created_at AS created_at_13 , t0 . updated_at AS updated_at_14 , t0 . views AS views_15 , t0 . position AS position_16 , t0 . active AS active_17 , t0 . meta_title AS meta_title_18 , t0 . meta_description AS meta_description_19 , t0 . meta_keywords AS meta_keywords_20 , t0 . brand_id AS brand_id_21 FROM product t0 WHERE t0 . id = 16386 ;
Copy
18
0.13 ms
SELECT t0 . id AS id_1 , t0 . cod AS cod_2 , t0 . reference AS reference_3 , t0 . name AS name_4 , t0 . description AS description_5 , t0 . slug AS slug_6 , t0 . stock AS stock_7 , t0 . pvp AS pvp_8 , t0 . discount AS discount_9 , t0 . net_price AS net_price_10 , t0 . extra AS extra_11 , t0 . images AS images_12 , t0 . created_at AS created_at_13 , t0 . updated_at AS updated_at_14 , t0 . views AS views_15 , t0 . position AS position_16 , t0 . active AS active_17 , t0 . meta_title AS meta_title_18 , t0 . meta_description AS meta_description_19 , t0 . meta_keywords AS meta_keywords_20 , t0 . brand_id AS brand_id_21 FROM product t0 WHERE t0 . id = ?
SELECT t0 . id AS id_1 , t0 . cod AS cod_2 , t0 . reference AS reference_3 , t0 . name AS name_4 , t0 . description AS description_5 , t0 . slug AS slug_6 , t0 . stock AS stock_7 , t0 . pvp AS pvp_8 , t0 . discount AS discount_9 , t0 . net_price AS net_price_10 , t0 . extra AS extra_11 , t0 . images AS images_12 , t0 . created_at AS created_at_13 , t0 . updated_at AS updated_at_14 , t0 . views AS views_15 , t0 . position AS position_16 , t0 . active AS active_17 , t0 . meta_title AS meta_title_18 , t0 . meta_description AS meta_description_19 , t0 . meta_keywords AS meta_keywords_20 , t0 . brand_id AS brand_id_21 FROM product t0 WHERE t0 . id = 22027 ;
Copy
19
0.15 ms
SELECT t0 . id AS id_1 , t0 . cod AS cod_2 , t0 . reference AS reference_3 , t0 . name AS name_4 , t0 . description AS description_5 , t0 . slug AS slug_6 , t0 . stock AS stock_7 , t0 . pvp AS pvp_8 , t0 . discount AS discount_9 , t0 . net_price AS net_price_10 , t0 . extra AS extra_11 , t0 . images AS images_12 , t0 . created_at AS created_at_13 , t0 . updated_at AS updated_at_14 , t0 . views AS views_15 , t0 . position AS position_16 , t0 . active AS active_17 , t0 . meta_title AS meta_title_18 , t0 . meta_description AS meta_description_19 , t0 . meta_keywords AS meta_keywords_20 , t0 . brand_id AS brand_id_21 FROM product t0 WHERE t0 . id IN (? ) ORDER BY t0 . position ASC , t0 . name ASC
SELECT t0 . id AS id_1 , t0 . cod AS cod_2 , t0 . reference AS reference_3 , t0 . name AS name_4 , t0 . description AS description_5 , t0 . slug AS slug_6 , t0 . stock AS stock_7 , t0 . pvp AS pvp_8 , t0 . discount AS discount_9 , t0 . net_price AS net_price_10 , t0 . extra AS extra_11 , t0 . images AS images_12 , t0 . created_at AS created_at_13 , t0 . updated_at AS updated_at_14 , t0 . views AS views_15 , t0 . position AS position_16 , t0 . active AS active_17 , t0 . meta_title AS meta_title_18 , t0 . meta_description AS meta_description_19 , t0 . meta_keywords AS meta_keywords_20 , t0 . brand_id AS brand_id_21 FROM product t0 WHERE t0 . id IN (17369 ) ORDER BY t0 . position ASC , t0 . name ASC ;
Copy
20
28.29 ms
SELECT c0_ . id AS id_0 , c0_ . name AS name_1 , c0_ . slug AS slug_2 , c0_ . image AS image_3 , c0_ . active AS active_4 , c0_ . position AS position_5 , c0_ . meta_title AS meta_title_6 , c0_ . meta_description AS meta_description_7 , c0_ . meta_keywords AS meta_keywords_8 , COUNT (p1_ . id ) AS sclr_9 , c0_ . parent_id AS parent_id_10 FROM category c0_ LEFT JOIN product_category p2_ ON c0_ . id = p2_ . category_id LEFT JOIN product p1_ ON p1_ . id = p2_ . product_id WHERE c0_ . active = ? AND c0_ . parent_id IS NULL GROUP BY c0_ . id ORDER BY c0_ . position ASC , c0_ . name ASC
SELECT c0_ . id AS id_0 , c0_ . name AS name_1 , c0_ . slug AS slug_2 , c0_ . image AS image_3 , c0_ . active AS active_4 , c0_ . position AS position_5 , c0_ . meta_title AS meta_title_6 , c0_ . meta_description AS meta_description_7 , c0_ . meta_keywords AS meta_keywords_8 , COUNT (p1_ . id ) AS sclr_9 , c0_ . parent_id AS parent_id_10 FROM category c0_ LEFT JOIN product_category p2_ ON c0_ . id = p2_ . category_id LEFT JOIN product p1_ ON p1_ . id = p2_ . product_id WHERE c0_ . active = 1 AND c0_ . parent_id IS NULL GROUP BY c0_ . id ORDER BY c0_ . position ASC , c0_ . name ASC ;
Copy