1
0.29 ms
SELECT s0_ . lang AS lang_0 FROM setting s0_ WHERE s0_ . id > = 1
SELECT s0_ . lang AS lang_0 FROM setting s0_ WHERE s0_ . id > = 1 ;
Copy
2
3.16 ms
SELECT p0_ . id AS id_0 , COALESCE (p1_ . title , p2_ . title ) AS sclr_1 , COALESCE (p1_ . description , p2_ . description ) AS sclr_2 , p0_ . pcode AS pcode_3 , p0_ . image AS image_4 , p0_ . price AS price_5 , p0_ . quantity AS quantity_6 , p0_ . metal AS metal_7 , p0_ . weight AS weight_8 , p0_ . status AS status_9 , p0_ . campaign AS campaign_10 , c3_ . id AS id_11 FROM product p0_ LEFT JOIN product_lang p1_ ON p0_ . id = p1_ . product_id AND (p1_ . lang = ? ) LEFT JOIN product_lang p2_ ON p0_ . id = p2_ . product_id AND (p2_ . lang = ? ) LEFT JOIN category c3_ ON p0_ . category_id = c3_ . id WHERE c3_ . id = ? ORDER BY p0_ . id DESC
Parameters :
[
"en "
"en "
"8 "
]
SELECT p0_ . id AS id_0 , COALESCE (p1_ . title , p2_ . title ) AS sclr_1 , COALESCE (p1_ . description , p2_ . description ) AS sclr_2 , p0_ . pcode AS pcode_3 , p0_ . image AS image_4 , p0_ . price AS price_5 , p0_ . quantity AS quantity_6 , p0_ . metal AS metal_7 , p0_ . weight AS weight_8 , p0_ . status AS status_9 , p0_ . campaign AS campaign_10 , c3_ . id AS id_11 FROM product p0_ LEFT JOIN product_lang p1_ ON p0_ . id = p1_ . product_id AND (p1_ . lang = 'en' ) LEFT JOIN product_lang p2_ ON p0_ . id = p2_ . product_id AND (p2_ . lang = 'en' ) LEFT JOIN category c3_ ON p0_ . category_id = c3_ . id WHERE c3_ . id = '8' ORDER BY p0_ . id DESC ;
Copy
3
1.08 ms
SELECT t0 . id AS id_1 , t0 . lang AS lang_2 , t0 . title AS title_3 , t0 . keywords AS keywords_4 , t0 . description AS description_5 , t0 . category_id AS category_id_6 FROM category_lang t0 WHERE t0 . category_id = ? AND t0 . lang = ? LIMIT 1
SELECT t0 . id AS id_1 , t0 . lang AS lang_2 , t0 . title AS title_3 , t0 . keywords AS keywords_4 , t0 . description AS description_5 , t0 . category_id AS category_id_6 FROM category_lang t0 WHERE t0 . category_id = '8' AND t0 . lang = 'en' LIMIT 1 ;
Copy
4
0.24 ms
SELECT c . id as catid , cl . title as title FROM category c JOIN category_lang cl on c . id = cl . category_id WHERE cl . lang = 'en' AND c . parent_id is NULL AND c . status = 1 ORDER BY cl . title ASC
SELECT c . id as catid , cl . title as title FROM category c JOIN category_lang cl on c . id = cl . category_id WHERE cl . lang = 'en' AND c . parent_id is NULL AND c . status = 1 ORDER BY cl . title ASC ;
Copy
5
0.13 ms
SELECT c . id as catid , cl . title as title FROM category c JOIN category_lang cl on c . id = cl . category_id WHERE cl . lang = 'en' AND c . parent_id = 23 AND c . status = 1 ORDER BY cl . title ASC
SELECT c . id as catid , cl . title as title FROM category c JOIN category_lang cl on c . id = cl . category_id WHERE cl . lang = 'en' AND c . parent_id = 23 AND c . status = 1 ORDER BY cl . title ASC ;
Copy
6
0.11 ms
SELECT c . id as catid , cl . title as title FROM category c JOIN category_lang cl on c . id = cl . category_id WHERE cl . lang = 'en' AND c . parent_id = 7 AND c . status = 1 ORDER BY cl . title ASC
SELECT c . id as catid , cl . title as title FROM category c JOIN category_lang cl on c . id = cl . category_id WHERE cl . lang = 'en' AND c . parent_id = 7 AND c . status = 1 ORDER BY cl . title ASC ;
Copy
7
0.11 ms
SELECT c . id as catid , cl . title as title FROM category c JOIN category_lang cl on c . id = cl . category_id WHERE cl . lang = 'en' AND c . parent_id = 11 AND c . status = 1 ORDER BY cl . title ASC
SELECT c . id as catid , cl . title as title FROM category c JOIN category_lang cl on c . id = cl . category_id WHERE cl . lang = 'en' AND c . parent_id = 11 AND c . status = 1 ORDER BY cl . title ASC ;
Copy
8
0.09 ms
SELECT c . id as catid , cl . title as title FROM category c JOIN category_lang cl on c . id = cl . category_id WHERE cl . lang = 'en' AND c . parent_id = 2 AND c . status = 1 ORDER BY cl . title ASC
SELECT c . id as catid , cl . title as title FROM category c JOIN category_lang cl on c . id = cl . category_id WHERE cl . lang = 'en' AND c . parent_id = 2 AND c . status = 1 ORDER BY cl . title ASC ;
Copy
9
0.10 ms
SELECT c . id as catid , cl . title as title FROM category c JOIN category_lang cl on c . id = cl . category_id WHERE cl . lang = 'en' AND c . parent_id = 12 AND c . status = 1 ORDER BY cl . title ASC
SELECT c . id as catid , cl . title as title FROM category c JOIN category_lang cl on c . id = cl . category_id WHERE cl . lang = 'en' AND c . parent_id = 12 AND c . status = 1 ORDER BY cl . title ASC ;
Copy
10
0.10 ms
SELECT c . id as catid , cl . title as title FROM category c JOIN category_lang cl on c . id = cl . category_id WHERE cl . lang = 'en' AND c . parent_id = 1 AND c . status = 1 ORDER BY cl . title ASC
SELECT c . id as catid , cl . title as title FROM category c JOIN category_lang cl on c . id = cl . category_id WHERE cl . lang = 'en' AND c . parent_id = 1 AND c . status = 1 ORDER BY cl . title ASC ;
Copy
11
0.09 ms
SELECT c . id as catid , cl . title as title FROM category c JOIN category_lang cl on c . id = cl . category_id WHERE cl . lang = 'en' AND c . parent_id = 3 AND c . status = 1 ORDER BY cl . title ASC
SELECT c . id as catid , cl . title as title FROM category c JOIN category_lang cl on c . id = cl . category_id WHERE cl . lang = 'en' AND c . parent_id = 3 AND c . status = 1 ORDER BY cl . title ASC ;
Copy
12
0.09 ms
SELECT c . id as catid , cl . title as title FROM category c JOIN category_lang cl on c . id = cl . category_id WHERE cl . lang = 'en' AND c . parent_id = 13 AND c . status = 1 ORDER BY cl . title ASC
SELECT c . id as catid , cl . title as title FROM category c JOIN category_lang cl on c . id = cl . category_id WHERE cl . lang = 'en' AND c . parent_id = 13 AND c . status = 1 ORDER BY cl . title ASC ;
Copy
13
0.11 ms
SELECT c . id as catid , cl . title as title FROM category c JOIN category_lang cl on c . id = cl . category_id WHERE cl . lang = 'en' AND c . parent_id is NULL AND c . status = 1 ORDER BY cl . title ASC
SELECT c . id as catid , cl . title as title FROM category c JOIN category_lang cl on c . id = cl . category_id WHERE cl . lang = 'en' AND c . parent_id is NULL AND c . status = 1 ORDER BY cl . title ASC ;
Copy
14
0.10 ms
SELECT c . id as catid , cl . title as title FROM category c JOIN category_lang cl on c . id = cl . category_id WHERE cl . lang = 'en' AND c . parent_id = 23 AND c . status = 1 ORDER BY cl . title ASC
SELECT c . id as catid , cl . title as title FROM category c JOIN category_lang cl on c . id = cl . category_id WHERE cl . lang = 'en' AND c . parent_id = 23 AND c . status = 1 ORDER BY cl . title ASC ;
Copy
15
0.10 ms
SELECT c . id as catid , cl . title as title FROM category c JOIN category_lang cl on c . id = cl . category_id WHERE cl . lang = 'en' AND c . parent_id = 7 AND c . status = 1 ORDER BY cl . title ASC
SELECT c . id as catid , cl . title as title FROM category c JOIN category_lang cl on c . id = cl . category_id WHERE cl . lang = 'en' AND c . parent_id = 7 AND c . status = 1 ORDER BY cl . title ASC ;
Copy
16
0.11 ms
SELECT c . id as catid , cl . title as title FROM category c JOIN category_lang cl on c . id = cl . category_id WHERE cl . lang = 'en' AND c . parent_id = 11 AND c . status = 1 ORDER BY cl . title ASC
SELECT c . id as catid , cl . title as title FROM category c JOIN category_lang cl on c . id = cl . category_id WHERE cl . lang = 'en' AND c . parent_id = 11 AND c . status = 1 ORDER BY cl . title ASC ;
Copy
17
0.11 ms
SELECT c . id as catid , cl . title as title FROM category c JOIN category_lang cl on c . id = cl . category_id WHERE cl . lang = 'en' AND c . parent_id = 2 AND c . status = 1 ORDER BY cl . title ASC
SELECT c . id as catid , cl . title as title FROM category c JOIN category_lang cl on c . id = cl . category_id WHERE cl . lang = 'en' AND c . parent_id = 2 AND c . status = 1 ORDER BY cl . title ASC ;
Copy
18
0.11 ms
SELECT c . id as catid , cl . title as title FROM category c JOIN category_lang cl on c . id = cl . category_id WHERE cl . lang = 'en' AND c . parent_id = 12 AND c . status = 1 ORDER BY cl . title ASC
SELECT c . id as catid , cl . title as title FROM category c JOIN category_lang cl on c . id = cl . category_id WHERE cl . lang = 'en' AND c . parent_id = 12 AND c . status = 1 ORDER BY cl . title ASC ;
Copy
19
0.11 ms
SELECT c . id as catid , cl . title as title FROM category c JOIN category_lang cl on c . id = cl . category_id WHERE cl . lang = 'en' AND c . parent_id = 1 AND c . status = 1 ORDER BY cl . title ASC
SELECT c . id as catid , cl . title as title FROM category c JOIN category_lang cl on c . id = cl . category_id WHERE cl . lang = 'en' AND c . parent_id = 1 AND c . status = 1 ORDER BY cl . title ASC ;
Copy
20
0.09 ms
SELECT c . id as catid , cl . title as title FROM category c JOIN category_lang cl on c . id = cl . category_id WHERE cl . lang = 'en' AND c . parent_id = 3 AND c . status = 1 ORDER BY cl . title ASC
SELECT c . id as catid , cl . title as title FROM category c JOIN category_lang cl on c . id = cl . category_id WHERE cl . lang = 'en' AND c . parent_id = 3 AND c . status = 1 ORDER BY cl . title ASC ;
Copy
21
0.10 ms
SELECT c . id as catid , cl . title as title FROM category c JOIN category_lang cl on c . id = cl . category_id WHERE cl . lang = 'en' AND c . parent_id = 13 AND c . status = 1 ORDER BY cl . title ASC
SELECT c . id as catid , cl . title as title FROM category c JOIN category_lang cl on c . id = cl . category_id WHERE cl . lang = 'en' AND c . parent_id = 13 AND c . status = 1 ORDER BY cl . title ASC ;
Copy