Close
1 x Controller (82.06%) | 160.34ms |
1 x Booting (4.76%) | 9.31ms |
1 x Configs (0.99%) | 1.93ms |
SET NAMES utf8mb4
174μs0SET SESSION sql_mode=''
31μs0SELECT * FROM `i18n_cat` ORDER BY `default_lang` DESC
22μs2SELECT * FROM `configs`
128μs104SELECT * FROM `countries` ORDER BY `en_name`
28μs244SELECT * FROM `products_cat` WHERE `sub_of` = 0 AND `status` =1 ORDER BY `sort_id` , `id`
81μs5SELECT * FROM `products_cat` WHERE `sub_of`=37 AND `status` =1 ORDER BY `sort_id` , `id`
17μs5SELECT * FROM `products_cat` WHERE `sub_of`=38 AND `status` =1 ORDER BY `sort_id` , `id`
14μs0SELECT * FROM `products_cat` WHERE `sub_of`=39 AND `status` =1 ORDER BY `sort_id` , `id`
14μs0SELECT * FROM `products_cat` WHERE `sub_of`=40 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT * FROM `products_cat` WHERE `sub_of`=41 AND `status` =1 ORDER BY `sort_id` , `id`
16μs0SELECT * FROM `products_cat` WHERE `sub_of`=42 AND `status` =1 ORDER BY `sort_id` , `id`
16μs0SELECT * FROM `products_cat` WHERE `sub_of`=8 AND `status` =1 ORDER BY `sort_id` , `id`
15μs9SELECT * FROM `products_cat` WHERE `sub_of`=26 AND `status` =1 ORDER BY `sort_id` , `id`
13μs0SELECT * FROM `products_cat` WHERE `sub_of`=53 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT * FROM `products_cat` WHERE `sub_of`=27 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT * FROM `products_cat` WHERE `sub_of`=29 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT * FROM `products_cat` WHERE `sub_of`=30 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT * FROM `products_cat` WHERE `sub_of`=45 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT * FROM `products_cat` WHERE `sub_of`=31 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT * FROM `products_cat` WHERE `sub_of`=28 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT * FROM `products_cat` WHERE `sub_of`=32 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT * FROM `products_cat` WHERE `sub_of`=9 AND `status` =1 ORDER BY `sort_id` , `id`
15μs11SELECT * FROM `products_cat` WHERE `sub_of`=20 AND `status` =1 ORDER BY `sort_id` , `id`
14μs0SELECT * FROM `products_cat` WHERE `sub_of`=21 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT * FROM `products_cat` WHERE `sub_of`=4 AND `status` =1 ORDER BY `sort_id` , `id`
16μs0SELECT * FROM `products_cat` WHERE `sub_of`=43 AND `status` =1 ORDER BY `sort_id` , `id`
16μs0SELECT * FROM `products_cat` WHERE `sub_of`=44 AND `status` =1 ORDER BY `sort_id` , `id`
14μs0SELECT * FROM `products_cat` WHERE `sub_of`=51 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT * FROM `products_cat` WHERE `sub_of`=23 AND `status` =1 ORDER BY `sort_id` , `id`
14μs0SELECT * FROM `products_cat` WHERE `sub_of`=24 AND `status` =1 ORDER BY `sort_id` , `id`
16μs0SELECT * FROM `products_cat` WHERE `sub_of`=22 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT * FROM `products_cat` WHERE `sub_of`=49 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT * FROM `products_cat` WHERE `sub_of`=25 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT * FROM `products_cat` WHERE `sub_of`=1 AND `status` =1 ORDER BY `sort_id` , `id`
14μs2SELECT * FROM `products_cat` WHERE `sub_of`=17 AND `status` =1 ORDER BY `sort_id` , `id`
14μs8SELECT * FROM `products_cat` WHERE `sub_of`=18 AND `status` =1 ORDER BY `sort_id` , `id`
14μs0SELECT * FROM `products_cat` WHERE `sub_of`=12 AND `status` =1 ORDER BY `sort_id` , `id`
14μs0SELECT * FROM `header_ads` WHERE NOW() BETWEEN`date_start` AND `date_expire` AND `status` = 1 ORDER BY `id` DESC Limit 1
166μs0SELECT * FROM `faq_cat` WHERE `status` =1
17μs2SELECT * FROM `products_cat` WHERE `id`IN (SELECT `sub_of` FROM `products` WHERE `is_new` = 1) LIMIT 8
14μs8SELECT * FROM `pages` WHERE `status` =1 ORDER BY `sort_id`
21μs6INSERT INTO `sessions` ( `admins`,`session`,`last_ip` )VALUES( '0','79f6a50d8a43e929ca70d11433deb588','3.137.151.130' )
18.34ms1SELECT * FROM `carts` WHERE `sub_of` IN (190107)
130μs0SELECT * FROM `products_cat` WHERE `sub_of` = 0 AND `status` =1 ORDER BY `sort_id` , `id`
17μs5SELECT * FROM `products_cat` WHERE `sub_of`=37 AND `status` =1 ORDER BY `sort_id` , `id`
14μs5SELECT * FROM `products_cat` WHERE `sub_of`=38 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT * FROM `products_cat` WHERE `sub_of`=39 AND `status` =1 ORDER BY `sort_id` , `id`
16μs0SELECT * FROM `products_cat` WHERE `sub_of`=40 AND `status` =1 ORDER BY `sort_id` , `id`
16μs0SELECT * FROM `products_cat` WHERE `sub_of`=41 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT * FROM `products_cat` WHERE `sub_of`=42 AND `status` =1 ORDER BY `sort_id` , `id`
16μs0SELECT * FROM `products_cat` WHERE `sub_of`=8 AND `status` =1 ORDER BY `sort_id` , `id`
16μs9SELECT * FROM `products_cat` WHERE `sub_of`=26 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT * FROM `products_cat` WHERE `sub_of`=53 AND `status` =1 ORDER BY `sort_id` , `id`
16μs0SELECT * FROM `products_cat` WHERE `sub_of`=27 AND `status` =1 ORDER BY `sort_id` , `id`
16μs0SELECT * FROM `products_cat` WHERE `sub_of`=29 AND `status` =1 ORDER BY `sort_id` , `id`
16μs0SELECT * FROM `products_cat` WHERE `sub_of`=30 AND `status` =1 ORDER BY `sort_id` , `id`
19μs0SELECT * FROM `products_cat` WHERE `sub_of`=45 AND `status` =1 ORDER BY `sort_id` , `id`
18μs0SELECT * FROM `products_cat` WHERE `sub_of`=31 AND `status` =1 ORDER BY `sort_id` , `id`
16μs0SELECT * FROM `products_cat` WHERE `sub_of`=28 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT * FROM `products_cat` WHERE `sub_of`=32 AND `status` =1 ORDER BY `sort_id` , `id`
16μs0SELECT * FROM `products_cat` WHERE `sub_of`=9 AND `status` =1 ORDER BY `sort_id` , `id`
16μs11SELECT * FROM `products_cat` WHERE `sub_of`=20 AND `status` =1 ORDER BY `sort_id` , `id`
13μs0SELECT * FROM `products_cat` WHERE `sub_of`=21 AND `status` =1 ORDER BY `sort_id` , `id`
16μs0SELECT * FROM `products_cat` WHERE `sub_of`=4 AND `status` =1 ORDER BY `sort_id` , `id`
16μs0SELECT * FROM `products_cat` WHERE `sub_of`=43 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT * FROM `products_cat` WHERE `sub_of`=44 AND `status` =1 ORDER BY `sort_id` , `id`
16μs0SELECT * FROM `products_cat` WHERE `sub_of`=51 AND `status` =1 ORDER BY `sort_id` , `id`
16μs0SELECT * FROM `products_cat` WHERE `sub_of`=23 AND `status` =1 ORDER BY `sort_id` , `id`
16μs0SELECT * FROM `products_cat` WHERE `sub_of`=24 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT * FROM `products_cat` WHERE `sub_of`=22 AND `status` =1 ORDER BY `sort_id` , `id`
16μs0SELECT * FROM `products_cat` WHERE `sub_of`=49 AND `status` =1 ORDER BY `sort_id` , `id`
16μs0SELECT * FROM `products_cat` WHERE `sub_of`=25 AND `status` =1 ORDER BY `sort_id` , `id`
16μs0SELECT * FROM `products_cat` WHERE `sub_of`=1 AND `status` =1 ORDER BY `sort_id` , `id`
16μs2SELECT * FROM `products_cat` WHERE `sub_of`=17 AND `status` =1 ORDER BY `sort_id` , `id`
15μs8SELECT * FROM `products_cat` WHERE `sub_of`=18 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT * FROM `products_cat` WHERE `sub_of`=12 AND `status` =1 ORDER BY `sort_id` , `id`
16μs0SELECT * FROM `faq_cat` WHERE `status` =1
15μs2SELECT * FROM `pages` WHERE `status` =1 ORDER BY `sort_id`
23μs6SELECT * FROM `products_cat` WHERE `sub_of`=0 AND `status` =1 ORDER BY `sort_id` , `id`
82μs5SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1 AND p.`sub_of` ='37'
GROUP BY p.id
LIMIT 0,30
332μs0SELECT * FROM `attributes`
WHERE `type`='quantity'
19μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
16μs90SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1
GROUP BY p.id ORDER BY p.date_update
LIMIT 0,11
13.17ms11SELECT
`id`,
`title`,
`description`,
`small_description`,
`variations`,
`sub_of`,
`price`,
`price_before`,
`quantity`
FROM `quantities`
WHERE `sub_of` IN (23,26,27,28,29,30,31,32,33,34,35)
728μs11SELECT * FROM `attributes`
WHERE `type`='quantity'
21μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
16μs90SELECT `sub_of`, `file_url`
FROM `products_files`
WHERE `sub_of` IN (23,26,27,28,29,30,31,32,33,34,35)
AND `for_quantity` = 1
ORDER BY `main` DESC
19μs33SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1
GROUP BY p.id ORDER BY sold DESC
LIMIT 0,20
12.83ms20SELECT
`id`,
`title`,
`description`,
`small_description`,
`variations`,
`sub_of`,
`price`,
`price_before`,
`quantity`
FROM `quantities`
WHERE `sub_of` IN (1958,1794,1953,407,431,376,371,3,328,332,2,5,314,1864,47,256,4,13,1915,335)
296μs24SELECT * FROM `attributes`
WHERE `type`='quantity'
821μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
25μs90SELECT `sub_of`, `file_url`
FROM `products_files`
WHERE `sub_of` IN (2,3,4,5,13,47,256,318,319,334,339,340,341,344,384,389,420,448,449,1892,1975,2048,2089,2094)
AND `for_quantity` = 1
ORDER BY `main` DESC
22μs45SELECT * FROM `products_cat` WHERE `sub_of`=37 AND `status` =1 ORDER BY `sort_id` , `id`
19μs5SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1 AND p.`sub_of` ='38'
GROUP BY p.id
LIMIT 0,5
397μs5SELECT
`id`,
`title`,
`description`,
`small_description`,
`variations`,
`sub_of`,
`price`,
`price_before`,
`quantity`
FROM `quantities`
WHERE `sub_of` IN (312,313,314,316,325)
122μs7SELECT * FROM `attributes`
WHERE `type`='quantity'
21μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
16μs90SELECT `sub_of`, `file_url`
FROM `products_files`
WHERE `sub_of` IN (316,317,318,319,321,322,331)
AND `for_quantity` = 1
ORDER BY `main` DESC
17μs16SELECT * FROM `products_cat` WHERE `sub_of`=38 AND `status` =1 ORDER BY `sort_id` , `id`
18μs0SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1 AND p.`sub_of` ='39'
GROUP BY p.id
LIMIT 0,5
355μs5SELECT
`id`,
`title`,
`description`,
`small_description`,
`variations`,
`sub_of`,
`price`,
`price_before`,
`quantity`
FROM `quantities`
WHERE `sub_of` IN (306,307,308,311,318)
291μs8SELECT * FROM `attributes`
WHERE `type`='quantity'
18μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
16μs90SELECT `sub_of`, `file_url`
FROM `products_files`
WHERE `sub_of` IN (308,309,310,2118,311,314,315,324)
AND `for_quantity` = 1
ORDER BY `main` DESC
17μs20SELECT * FROM `products_cat` WHERE `sub_of`=39 AND `status` =1 ORDER BY `sort_id` , `id`
17μs0SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1 AND p.`sub_of` ='40'
GROUP BY p.id
LIMIT 0,5
343μs5SELECT
`id`,
`title`,
`description`,
`small_description`,
`variations`,
`sub_of`,
`price`,
`price_before`,
`quantity`
FROM `quantities`
WHERE `sub_of` IN (372,373,379,394,395)
94μs5SELECT * FROM `attributes`
WHERE `type`='quantity'
17μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
16μs90SELECT `sub_of`, `file_url`
FROM `products_files`
WHERE `sub_of` IN (385,386,392,407,408)
AND `for_quantity` = 1
ORDER BY `main` DESC
14μs10SELECT * FROM `products_cat` WHERE `sub_of`=40 AND `status` =1 ORDER BY `sort_id` , `id`
16μs0SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1 AND p.`sub_of` ='41'
GROUP BY p.id
LIMIT 0,5
360μs5SELECT
`id`,
`title`,
`description`,
`small_description`,
`variations`,
`sub_of`,
`price`,
`price_before`,
`quantity`
FROM `quantities`
WHERE `sub_of` IN (309,315,322,358,359)
89μs5SELECT * FROM `attributes`
WHERE `type`='quantity'
405μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
17μs90SELECT `sub_of`, `file_url`
FROM `products_files`
WHERE `sub_of` IN (312,320,328,371,372)
AND `for_quantity` = 1
ORDER BY `main` DESC
15μs8SELECT * FROM `products_cat` WHERE `sub_of`=41 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1 AND p.`sub_of` ='42'
GROUP BY p.id
LIMIT 0,5
414μs5SELECT
`id`,
`title`,
`description`,
`small_description`,
`variations`,
`sub_of`,
`price`,
`price_before`,
`quantity`
FROM `quantities`
WHERE `sub_of` IN (310,367,368,389,1864)
91μs5SELECT * FROM `attributes`
WHERE `type`='quantity'
18μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
16μs90SELECT `sub_of`, `file_url`
FROM `products_files`
WHERE `sub_of` IN (313,380,381,402,1975)
AND `for_quantity` = 1
ORDER BY `main` DESC
15μs8SELECT * FROM `products_cat` WHERE `sub_of`=42 AND `status` =1 ORDER BY `sort_id` , `id`
17μs0SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1 AND p.`sub_of` ='8'
GROUP BY p.id
LIMIT 0,30
239μs0SELECT * FROM `attributes`
WHERE `type`='quantity'
18μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
18μs90SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1
GROUP BY p.id ORDER BY p.date_update
LIMIT 0,11
12.78ms11SELECT
`id`,
`title`,
`description`,
`small_description`,
`variations`,
`sub_of`,
`price`,
`price_before`,
`quantity`
FROM `quantities`
WHERE `sub_of` IN (23,26,27,28,29,30,31,32,33,34,35)
23μs11SELECT * FROM `attributes`
WHERE `type`='quantity'
14μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
16μs90SELECT `sub_of`, `file_url`
FROM `products_files`
WHERE `sub_of` IN (23,26,27,28,29,30,31,32,33,34,35)
AND `for_quantity` = 1
ORDER BY `main` DESC
16μs33SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1
GROUP BY p.id ORDER BY sold DESC
LIMIT 0,20
12.8ms20SELECT
`id`,
`title`,
`description`,
`small_description`,
`variations`,
`sub_of`,
`price`,
`price_before`,
`quantity`
FROM `quantities`
WHERE `sub_of` IN (1958,1794,1953,407,431,376,371,3,328,332,2,5,314,1864,47,256,4,13,1915,335)
26μs24SELECT * FROM `attributes`
WHERE `type`='quantity'
21μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
15μs90SELECT `sub_of`, `file_url`
FROM `products_files`
WHERE `sub_of` IN (2,3,4,5,13,47,256,318,319,334,339,340,341,344,384,389,420,448,449,1892,1975,2048,2089,2094)
AND `for_quantity` = 1
ORDER BY `main` DESC
16μs45SELECT * FROM `products_cat` WHERE `sub_of`=8 AND `status` =1 ORDER BY `sort_id` , `id`
19μs9SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1 AND p.`sub_of` ='26'
GROUP BY p.id
LIMIT 0,5
397μs5SELECT
`id`,
`title`,
`description`,
`small_description`,
`variations`,
`sub_of`,
`price`,
`price_before`,
`quantity`
FROM `quantities`
WHERE `sub_of` IN (472,473,474,475,476)
113μs10SELECT * FROM `attributes`
WHERE `type`='quantity'
18μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
17μs90SELECT `sub_of`, `file_url`
FROM `products_files`
WHERE `sub_of` IN (504,2042,505,507,506,2039,508,510,2111,509)
AND `for_quantity` = 1
ORDER BY `main` DESC
16μs24SELECT * FROM `products_cat` WHERE `sub_of`=26 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1 AND p.`sub_of` ='53'
GROUP BY p.id
LIMIT 0,5
331μs4SELECT
`id`,
`title`,
`description`,
`small_description`,
`variations`,
`sub_of`,
`price`,
`price_before`,
`quantity`
FROM `quantities`
WHERE `sub_of` IN (616,620,632,633)
116μs4SELECT * FROM `attributes`
WHERE `type`='quantity'
18μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
17μs90SELECT `sub_of`, `file_url`
FROM `products_files`
WHERE `sub_of` IN (688,692,704,705)
AND `for_quantity` = 1
ORDER BY `main` DESC
16μs8SELECT * FROM `products_cat` WHERE `sub_of`=53 AND `status` =1 ORDER BY `sort_id` , `id`
14μs0SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1 AND p.`sub_of` ='27'
GROUP BY p.id
LIMIT 0,5
480μs5SELECT
`id`,
`title`,
`description`,
`small_description`,
`variations`,
`sub_of`,
`price`,
`price_before`,
`quantity`
FROM `quantities`
WHERE `sub_of` IN (426,428,429,431,434)
95μs6SELECT * FROM `attributes`
WHERE `type`='quantity'
316μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
15μs90SELECT `sub_of`, `file_url`
FROM `products_files`
WHERE `sub_of` IN (439,443,444,448,449,452)
AND `for_quantity` = 1
ORDER BY `main` DESC
17μs9SELECT * FROM `products_cat` WHERE `sub_of`=27 AND `status` =1 ORDER BY `sort_id` , `id`
14μs0SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1 AND p.`sub_of` ='29'
GROUP BY p.id
LIMIT 0,5
357μs5SELECT
`id`,
`title`,
`description`,
`small_description`,
`variations`,
`sub_of`,
`price`,
`price_before`,
`quantity`
FROM `quantities`
WHERE `sub_of` IN (427,430,432,441,443)
95μs13SELECT * FROM `attributes`
WHERE `type`='quantity'
17μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
16μs90SELECT `sub_of`, `file_url`
FROM `products_files`
WHERE `sub_of` IN (440,441,442,445,446,447,450,461,462,463,465,466,2023)
AND `for_quantity` = 1
ORDER BY `main` DESC
15μs34SELECT * FROM `products_cat` WHERE `sub_of`=29 AND `status` =1 ORDER BY `sort_id` , `id`
17μs0SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1 AND p.`sub_of` ='30'
GROUP BY p.id
LIMIT 0,5
351μs5SELECT
`id`,
`title`,
`description`,
`small_description`,
`variations`,
`sub_of`,
`price`,
`price_before`,
`quantity`
FROM `quantities`
WHERE `sub_of` IN (456,457,477,478,496)
267μs7SELECT * FROM `attributes`
WHERE `type`='quantity'
18μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
17μs90SELECT `sub_of`, `file_url`
FROM `products_files`
WHERE `sub_of` IN (484,485,511,512,2040,2041,536)
AND `for_quantity` = 1
ORDER BY `main` DESC
16μs7SELECT * FROM `products_cat` WHERE `sub_of`=30 AND `status` =1 ORDER BY `sort_id` , `id`
16μs0SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1 AND p.`sub_of` ='45'
GROUP BY p.id
LIMIT 0,5
370μs5SELECT
`id`,
`title`,
`description`,
`small_description`,
`variations`,
`sub_of`,
`price`,
`price_before`,
`quantity`
FROM `quantities`
WHERE `sub_of` IN (463,464,479,483,484)
94μs9SELECT * FROM `attributes`
WHERE `type`='quantity'
515μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
17μs90SELECT `sub_of`, `file_url`
FROM `products_files`
WHERE `sub_of` IN (492,493,494,495,513,518,520,519,521)
AND `for_quantity` = 1
ORDER BY `main` DESC
18μs27SELECT * FROM `products_cat` WHERE `sub_of`=45 AND `status` =1 ORDER BY `sort_id` , `id`
17μs0SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1 AND p.`sub_of` ='31'
GROUP BY p.id
LIMIT 0,5
329μs4SELECT
`id`,
`title`,
`description`,
`small_description`,
`variations`,
`sub_of`,
`price`,
`price_before`,
`quantity`
FROM `quantities`
WHERE `sub_of` IN (458,613,614,615)
92μs10SELECT * FROM `attributes`
WHERE `type`='quantity'
17μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
17μs90SELECT `sub_of`, `file_url`
FROM `products_files`
WHERE `sub_of` IN (486,683,684,686,1997,685,687,1992,2027,2107)
AND `for_quantity` = 1
ORDER BY `main` DESC
14μs3SELECT * FROM `products_cat` WHERE `sub_of`=31 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1 AND p.`sub_of` ='28'
GROUP BY p.id
LIMIT 0,5
286μs1SELECT
`id`,
`title`,
`description`,
`small_description`,
`variations`,
`sub_of`,
`price`,
`price_before`,
`quantity`
FROM `quantities`
WHERE `sub_of` IN (462)
370μs1SELECT * FROM `attributes`
WHERE `type`='quantity'
18μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
17μs90SELECT `sub_of`, `file_url`
FROM `products_files`
WHERE `sub_of` IN (491)
AND `for_quantity` = 1
ORDER BY `main` DESC
14μs2SELECT * FROM `products_cat` WHERE `sub_of`=28 AND `status` =1 ORDER BY `sort_id` , `id`
16μs0SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1 AND p.`sub_of` ='32'
GROUP BY p.id
LIMIT 0,5
331μs4SELECT
`id`,
`title`,
`description`,
`small_description`,
`variations`,
`sub_of`,
`price`,
`price_before`,
`quantity`
FROM `quantities`
WHERE `sub_of` IN (481,482,498,499)
143μs10SELECT * FROM `attributes`
WHERE `type`='quantity'
18μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
17μs90SELECT `sub_of`, `file_url`
FROM `products_files`
WHERE `sub_of` IN (515,517,516,2024,539,601,2050,540,602,2049)
AND `for_quantity` = 1
ORDER BY `main` DESC
16μs29SELECT * FROM `products_cat` WHERE `sub_of`=32 AND `status` =1 ORDER BY `sort_id` , `id`
16μs0SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1 AND p.`sub_of` ='9'
GROUP BY p.id
LIMIT 0,30
231μs0SELECT * FROM `attributes`
WHERE `type`='quantity'
18μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
16μs90SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1
GROUP BY p.id ORDER BY p.date_update
LIMIT 0,11
12.88ms11SELECT
`id`,
`title`,
`description`,
`small_description`,
`variations`,
`sub_of`,
`price`,
`price_before`,
`quantity`
FROM `quantities`
WHERE `sub_of` IN (23,26,27,28,29,30,31,32,33,34,35)
21μs11SELECT * FROM `attributes`
WHERE `type`='quantity'
15μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
16μs90SELECT `sub_of`, `file_url`
FROM `products_files`
WHERE `sub_of` IN (23,26,27,28,29,30,31,32,33,34,35)
AND `for_quantity` = 1
ORDER BY `main` DESC
15μs33SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1
GROUP BY p.id ORDER BY sold DESC
LIMIT 0,20
12.8ms20SELECT
`id`,
`title`,
`description`,
`small_description`,
`variations`,
`sub_of`,
`price`,
`price_before`,
`quantity`
FROM `quantities`
WHERE `sub_of` IN (1958,1794,1953,407,431,376,371,3,328,332,2,5,314,1864,47,256,4,13,1915,335)
23μs24SELECT * FROM `attributes`
WHERE `type`='quantity'
16μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
16μs90SELECT `sub_of`, `file_url`
FROM `products_files`
WHERE `sub_of` IN (2,3,4,5,13,47,256,318,319,334,339,340,341,344,384,389,420,448,449,1892,1975,2048,2089,2094)
AND `for_quantity` = 1
ORDER BY `main` DESC
17μs45SELECT * FROM `products_cat` WHERE `sub_of`=9 AND `status` =1 ORDER BY `sort_id` , `id`
18μs11SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1 AND p.`sub_of` ='20'
GROUP BY p.id
LIMIT 0,5
405μs5SELECT
`id`,
`title`,
`description`,
`small_description`,
`variations`,
`sub_of`,
`price`,
`price_before`,
`quantity`
FROM `quantities`
WHERE `sub_of` IN (629,640,641,642,643)
109μs16SELECT * FROM `attributes`
WHERE `type`='quantity'
238μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
22μs90SELECT `sub_of`, `file_url`
FROM `products_files`
WHERE `sub_of` IN (701,724,727,729,731,725,728,730,732,726,1962,1963,733,736,739,742)
AND `for_quantity` = 1
ORDER BY `main` DESC
17μs47SELECT * FROM `products_cat` WHERE `sub_of`=20 AND `status` =1 ORDER BY `sort_id` , `id`
16μs0SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1 AND p.`sub_of` ='21'
GROUP BY p.id
LIMIT 0,5
367μs5SELECT
`id`,
`title`,
`description`,
`small_description`,
`variations`,
`sub_of`,
`price`,
`price_before`,
`quantity`
FROM `quantities`
WHERE `sub_of` IN (599,600,601,602,603)
105μs20SELECT * FROM `attributes`
WHERE `type`='quantity'
17μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
16μs90SELECT `sub_of`, `file_url`
FROM `products_files`
WHERE `sub_of` IN (650,652,1946,1947,651,653,654,1999,655,1945,2025,2026,656,659,661,2217,657,662,663,2216)
AND `for_quantity` = 1
ORDER BY `main` DESC
18μs48SELECT * FROM `products_cat` WHERE `sub_of`=21 AND `status` =1 ORDER BY `sort_id` , `id`
17μs0SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1 AND p.`sub_of` ='4'
GROUP BY p.id
LIMIT 0,5
323μs2SELECT
`id`,
`title`,
`description`,
`small_description`,
`variations`,
`sub_of`,
`price`,
`price_before`,
`quantity`
FROM `quantities`
WHERE `sub_of` IN (585,681)
95μs2SELECT * FROM `attributes`
WHERE `type`='quantity'
17μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
16μs90SELECT `sub_of`, `file_url`
FROM `products_files`
WHERE `sub_of` IN (628,779)
AND `for_quantity` = 1
ORDER BY `main` DESC
14μs0SELECT * FROM `products_cat` WHERE `sub_of`=4 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1 AND p.`sub_of` ='43'
GROUP BY p.id
LIMIT 0,5
327μs5SELECT
`id`,
`title`,
`description`,
`small_description`,
`variations`,
`sub_of`,
`price`,
`price_before`,
`quantity`
FROM `quantities`
WHERE `sub_of` IN (617,618,619,621,622)
85μs5SELECT * FROM `attributes`
WHERE `type`='quantity'
188μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
17μs90SELECT `sub_of`, `file_url`
FROM `products_files`
WHERE `sub_of` IN (689,690,691,693,694)
AND `for_quantity` = 1
ORDER BY `main` DESC
18μs11SELECT * FROM `products_cat` WHERE `sub_of`=43 AND `status` =1 ORDER BY `sort_id` , `id`
17μs0SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1 AND p.`sub_of` ='44'
GROUP BY p.id
LIMIT 0,5
226μs0SELECT * FROM `attributes`
WHERE `type`='quantity'
19μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
17μs90SELECT * FROM `products_cat` WHERE `sub_of`=44 AND `status` =1 ORDER BY `sort_id` , `id`
16μs0SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1 AND p.`sub_of` ='51'
GROUP BY p.id
LIMIT 0,5
354μs5SELECT
`id`,
`title`,
`description`,
`small_description`,
`variations`,
`sub_of`,
`price`,
`price_before`,
`quantity`
FROM `quantities`
WHERE `sub_of` IN (588,589,590,591,592)
96μs12SELECT * FROM `attributes`
WHERE `type`='quantity'
17μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
17μs90SELECT `sub_of`, `file_url`
FROM `products_files`
WHERE `sub_of` IN (631,632,636,639,646,633,637,640,647,634,635,645)
AND `for_quantity` = 1
ORDER BY `main` DESC
17μs34SELECT * FROM `products_cat` WHERE `sub_of`=51 AND `status` =1 ORDER BY `sort_id` , `id`
19μs0SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1 AND p.`sub_of` ='23'
GROUP BY p.id
LIMIT 0,5
323μs5SELECT
`id`,
`title`,
`description`,
`small_description`,
`variations`,
`sub_of`,
`price`,
`price_before`,
`quantity`
FROM `quantities`
WHERE `sub_of` IN (704,705,706,707,708)
281μs5SELECT * FROM `attributes`
WHERE `type`='quantity'
19μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
17μs90SELECT `sub_of`, `file_url`
FROM `products_files`
WHERE `sub_of` IN (802,803,804,805,806)
AND `for_quantity` = 1
ORDER BY `main` DESC
15μs10SELECT * FROM `products_cat` WHERE `sub_of`=23 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1 AND p.`sub_of` ='24'
GROUP BY p.id
LIMIT 0,5
346μs5SELECT
`id`,
`title`,
`description`,
`small_description`,
`variations`,
`sub_of`,
`price`,
`price_before`,
`quantity`
FROM `quantities`
WHERE `sub_of` IN (623,624,625,626,627)
88μs5SELECT * FROM `attributes`
WHERE `type`='quantity'
17μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
17μs90SELECT `sub_of`, `file_url`
FROM `products_files`
WHERE `sub_of` IN (695,696,697,698,699)
AND `for_quantity` = 1
ORDER BY `main` DESC
15μs5SELECT * FROM `products_cat` WHERE `sub_of`=24 AND `status` =1 ORDER BY `sort_id` , `id`
17μs0SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1 AND p.`sub_of` ='22'
GROUP BY p.id
LIMIT 0,5
310μs5SELECT
`id`,
`title`,
`description`,
`small_description`,
`variations`,
`sub_of`,
`price`,
`price_before`,
`quantity`
FROM `quantities`
WHERE `sub_of` IN (414,415,419,422,423)
82μs5SELECT * FROM `attributes`
WHERE `type`='quantity'
64μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
17μs90SELECT `sub_of`, `file_url`
FROM `products_files`
WHERE `sub_of` IN (427,428,432,435,436)
AND `for_quantity` = 1
ORDER BY `main` DESC
15μs8SELECT * FROM `products_cat` WHERE `sub_of`=22 AND `status` =1 ORDER BY `sort_id` , `id`
17μs0SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1 AND p.`sub_of` ='49'
GROUP BY p.id
LIMIT 0,5
359μs5SELECT
`id`,
`title`,
`description`,
`small_description`,
`variations`,
`sub_of`,
`price`,
`price_before`,
`quantity`
FROM `quantities`
WHERE `sub_of` IN (636,637,638,639,702)
99μs17SELECT * FROM `attributes`
WHERE `type`='quantity'
18μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
16μs90SELECT `sub_of`, `file_url`
FROM `products_files`
WHERE `sub_of` IN (708,712,716,720,709,713,717,721,710,714,718,722,711,715,719,723,800)
AND `for_quantity` = 1
ORDER BY `main` DESC
17μs49SELECT * FROM `products_cat` WHERE `sub_of`=49 AND `status` =1 ORDER BY `sort_id` , `id`
16μs0SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1 AND p.`sub_of` ='25'
GROUP BY p.id
LIMIT 0,5
268μs1SELECT
`id`,
`title`,
`description`,
`small_description`,
`variations`,
`sub_of`,
`price`,
`price_before`,
`quantity`
FROM `quantities`
WHERE `sub_of` IN (739)
296μs1SELECT * FROM `attributes`
WHERE `type`='quantity'
20μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
16μs90SELECT `sub_of`, `file_url`
FROM `products_files`
WHERE `sub_of` IN (837)
AND `for_quantity` = 1
ORDER BY `main` DESC
17μs0SELECT * FROM `products_cat` WHERE `sub_of`=25 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1 AND p.`sub_of` ='1'
GROUP BY p.id
LIMIT 0,30
740μs30SELECT
`id`,
`title`,
`description`,
`small_description`,
`variations`,
`sub_of`,
`price`,
`price_before`,
`quantity`
FROM `quantities`
WHERE `sub_of` IN (2,6,12,23,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50)
24μs30SELECT * FROM `attributes`
WHERE `type`='quantity'
16μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
16μs90SELECT `sub_of`, `file_url`
FROM `products_files`
WHERE `sub_of` IN (2,6,12,23,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50)
AND `for_quantity` = 1
ORDER BY `main` DESC
18μs89SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1
GROUP BY p.id ORDER BY p.date_update
LIMIT 0,11
12.68ms11SELECT
`id`,
`title`,
`description`,
`small_description`,
`variations`,
`sub_of`,
`price`,
`price_before`,
`quantity`
FROM `quantities`
WHERE `sub_of` IN (23,26,27,28,29,30,31,32,33,34,35)
22μs11SELECT * FROM `attributes`
WHERE `type`='quantity'
15μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
16μs90SELECT `sub_of`, `file_url`
FROM `products_files`
WHERE `sub_of` IN (23,26,27,28,29,30,31,32,33,34,35)
AND `for_quantity` = 1
ORDER BY `main` DESC
15μs33SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1
GROUP BY p.id ORDER BY sold DESC
LIMIT 0,20
12.68ms20SELECT
`id`,
`title`,
`description`,
`small_description`,
`variations`,
`sub_of`,
`price`,
`price_before`,
`quantity`
FROM `quantities`
WHERE `sub_of` IN (1958,1794,1953,407,431,376,371,3,328,332,2,5,314,1864,47,256,4,13,1915,335)
23μs24SELECT * FROM `attributes`
WHERE `type`='quantity'
16μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
15μs90SELECT `sub_of`, `file_url`
FROM `products_files`
WHERE `sub_of` IN (2,3,4,5,13,47,256,318,319,334,339,340,341,344,384,389,420,448,449,1892,1975,2048,2089,2094)
AND `for_quantity` = 1
ORDER BY `main` DESC
15μs45SELECT * FROM `products_cat` WHERE `sub_of`=1 AND `status` =1 ORDER BY `sort_id` , `id`
15μs2SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1 AND p.`sub_of` ='17'
GROUP BY p.id
LIMIT 0,5
266μs0SELECT * FROM `attributes`
WHERE `type`='quantity'
19μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
17μs90SELECT * FROM `products_cat` WHERE `sub_of`=17 AND `status` =1 ORDER BY `sort_id` , `id`
15μs8SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1 AND p.`sub_of` ='56'
GROUP BY p.id
LIMIT 0,5
349μs5SELECT
`id`,
`title`,
`description`,
`small_description`,
`variations`,
`sub_of`,
`price`,
`price_before`,
`quantity`
FROM `quantities`
WHERE `sub_of` IN (804,805,806,807,808)
116μs5SELECT * FROM `attributes`
WHERE `type`='quantity'
17μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
16μs90SELECT `sub_of`, `file_url`
FROM `products_files`
WHERE `sub_of` IN (902,903,904,905,906)
AND `for_quantity` = 1
ORDER BY `main` DESC
13μs0SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1 AND p.`sub_of` ='58'
GROUP BY p.id
LIMIT 0,5
333μs5SELECT
`id`,
`title`,
`description`,
`small_description`,
`variations`,
`sub_of`,
`price`,
`price_before`,
`quantity`
FROM `quantities`
WHERE `sub_of` IN (1291,1344,15906,15920,15934)
90μs5SELECT * FROM `attributes`
WHERE `type`='quantity'
46μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
16μs90SELECT `sub_of`, `file_url`
FROM `products_files`
WHERE `sub_of` IN (1389,1442,2469,2483,2497)
AND `for_quantity` = 1
ORDER BY `main` DESC
19μs0SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1 AND p.`sub_of` ='59'
GROUP BY p.id
LIMIT 0,5
255μs0SELECT * FROM `attributes`
WHERE `type`='quantity'
19μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
17μs90SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1 AND p.`sub_of` ='60'
GROUP BY p.id
LIMIT 0,5
239μs0SELECT * FROM `attributes`
WHERE `type`='quantity'
17μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
17μs90SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1 AND p.`sub_of` ='61'
GROUP BY p.id
LIMIT 0,5
213μs0SELECT * FROM `attributes`
WHERE `type`='quantity'
18μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
17μs90SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1 AND p.`sub_of` ='62'
GROUP BY p.id
LIMIT 0,5
321μs5SELECT
`id`,
`title`,
`description`,
`small_description`,
`variations`,
`sub_of`,
`price`,
`price_before`,
`quantity`
FROM `quantities`
WHERE `sub_of` IN (1027,1029,1033,1035,1039)
89μs5SELECT * FROM `attributes`
WHERE `type`='quantity'
18μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
16μs90SELECT `sub_of`, `file_url`
FROM `products_files`
WHERE `sub_of` IN (1125,1127,1131,1133,1137)
AND `for_quantity` = 1
ORDER BY `main` DESC
14μs0SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1 AND p.`sub_of` ='63'
GROUP BY p.id
LIMIT 0,5
313μs5SELECT
`id`,
`title`,
`description`,
`small_description`,
`variations`,
`sub_of`,
`price`,
`price_before`,
`quantity`
FROM `quantities`
WHERE `sub_of` IN (1539,1540,1541,1542,1543)
149μs5SELECT * FROM `attributes`
WHERE `type`='quantity'
18μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
17μs90SELECT `sub_of`, `file_url`
FROM `products_files`
WHERE `sub_of` IN (1637,1638,1639,1640,1641)
AND `for_quantity` = 1
ORDER BY `main` DESC
14μs3SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1 AND p.`sub_of` ='64'
GROUP BY p.id
LIMIT 0,5
357μs5SELECT
`id`,
`title`,
`description`,
`small_description`,
`variations`,
`sub_of`,
`price`,
`price_before`,
`quantity`
FROM `quantities`
WHERE `sub_of` IN (1537,1549,1550,1552,1553)
159μs5SELECT * FROM `attributes`
WHERE `type`='quantity'
18μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
18μs90SELECT `sub_of`, `file_url`
FROM `products_files`
WHERE `sub_of` IN (1635,1647,1648,1650,1651)
AND `for_quantity` = 1
ORDER BY `main` DESC
14μs0SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1 AND p.`sub_of` ='18'
GROUP BY p.id
LIMIT 0,5
374μs5SELECT
`id`,
`title`,
`description`,
`small_description`,
`variations`,
`sub_of`,
`price`,
`price_before`,
`quantity`
FROM `quantities`
WHERE `sub_of` IN (3,4,5,7,8)
93μs5SELECT * FROM `attributes`
WHERE `type`='quantity'
17μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
17μs90SELECT `sub_of`, `file_url`
FROM `products_files`
WHERE `sub_of` IN (3,4,5,7,8)
AND `for_quantity` = 1
ORDER BY `main` DESC
14μs11SELECT * FROM `products_cat` WHERE `sub_of`=18 AND `status` =1 ORDER BY `sort_id` , `id`
15μs0SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1 AND p.`sub_of` ='12'
GROUP BY p.id
LIMIT 0,30
234μs0SELECT * FROM `attributes`
WHERE `type`='quantity'
18μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
16μs90SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1
GROUP BY p.id ORDER BY p.date_update
LIMIT 0,11
12.65ms11SELECT
`id`,
`title`,
`description`,
`small_description`,
`variations`,
`sub_of`,
`price`,
`price_before`,
`quantity`
FROM `quantities`
WHERE `sub_of` IN (23,26,27,28,29,30,31,32,33,34,35)
23μs11SELECT * FROM `attributes`
WHERE `type`='quantity'
15μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
16μs90SELECT `sub_of`, `file_url`
FROM `products_files`
WHERE `sub_of` IN (23,26,27,28,29,30,31,32,33,34,35)
AND `for_quantity` = 1
ORDER BY `main` DESC
15μs33SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1
GROUP BY p.id ORDER BY sold DESC
LIMIT 0,20
12.69ms20SELECT
`id`,
`title`,
`description`,
`small_description`,
`variations`,
`sub_of`,
`price`,
`price_before`,
`quantity`
FROM `quantities`
WHERE `sub_of` IN (1958,1794,1953,407,431,376,371,3,328,332,2,5,314,1864,47,256,4,13,1915,335)
22μs24SELECT * FROM `attributes`
WHERE `type`='quantity'
16μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
15μs90SELECT `sub_of`, `file_url`
FROM `products_files`
WHERE `sub_of` IN (2,3,4,5,13,47,256,318,319,334,339,340,341,344,384,389,420,448,449,1892,1975,2048,2089,2094)
AND `for_quantity` = 1
ORDER BY `main` DESC
15μs45SELECT * FROM `products_cat` WHERE `sub_of`=12 AND `status` =1 ORDER BY `sort_id` , `id`
16μs0SELECT p.id,p.`slug`,p.external_id,p.youtube_url,p.3d_url,p.spec_sheet,p.sku,p.date_update,p.warranty,
p.about,p.description,p.cashback,p.title,d.name AS brand,
d.id AS brand_id,p.sub_of,p.tags,p.stock,p.low_stock,p.cost,p.sub_of,IF(od.s,od.s,0) AS sold,
(r.`value_rating` + r.`quality_rating` + r.`price_rating`) /3 AS avg,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` = 1 ORDER BY RAND() limit 1) as `pic_url`,
(SELECT `file_url` FROM `products_files`
WHERE `sub_of` = p.`id` and `for_quantity` = 0 AND `main` != 1 limit 1) as `file_url`,
q.price AS priceMin,q.price AS commercial_price,q.price_before AS market_price,
pc.name AS category,pc.id AS `category_id` FROM `products` p
LEFT JOIN quantities q ON
( q.sub_of = p.id and q.price = (SELECT MIN(`price`) FROM quantities WHERE `sub_of` = p.id))
LEFT JOIN `products_cat` pc ON pc.id= p.sub_of
LEFT JOIN `brands` d ON p.`brand_id` = d.`id`
LEFT JOIN `reviews` r ON r.`sub_of` = p.`id`
LEFT JOIN (SELECT product_id,IF(SUM(quantity),SUM(quantity),0) AS s
FROM `orders_data`
WHERE `sub_of` IN ( SELECT `id` FROM `orders` WHERE `status` < 4 )
GROUP BY product_id ) od ON od.`product_id` = p.`id`
WHERE p.`status` = 1 AND pc.`status`= 1
GROUP BY p.id
LIMIT 0,30
777μs30SELECT
`id`,
`title`,
`description`,
`small_description`,
`variations`,
`sub_of`,
`price`,
`price_before`,
`quantity`
FROM `quantities`
WHERE `sub_of` IN (2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32)
779μs30SELECT * FROM `attributes`
WHERE `type`='quantity'
197μs5SELECT `sub_of`,`cat_id` FROM `attributes_relations`
17μs90SELECT `sub_of`, `file_url`
FROM `products_files`
WHERE `sub_of` IN (2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32)
AND `for_quantity` = 1
ORDER BY `main` DESC
20μs85SELECT * FROM `brands` WHERE `status` =1 ORDER BY `sort_id`
17μs6