Пледы : красный/бордовый, серый
Производитель: Home line (Украина)
Производитель: Ardesto (КНР)
Производитель: Прованс (Украина)
Производитель: Biederlack (Германия)
SELECT url_to, r404
FROM pod_redirect
WHERE BINARY REPLACE(url_from,'/ru/','/') = '/pledy/red-gray.html?pg=5' LIMIT 0,1 [0.0002741813659668 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_base_goods;
CREATE TEMPORARY TABLE tmp_base_goods (
id INT NOT NULL PRIMARY KEY,
brand_id INT,
price DECIMAL(10,2),
old_price DECIMAL(10,2),
ordr INT,
is_present TINYINT(1),
sub_icon_id INT,
fast_delivery TINYINT(1),
is_new TINYINT(1),
is_sale TINYINT(1),
KEY idx_brand (brand_id)
) ENGINE=MEMORY [0.00028204917907715 sec]
INSERT INTO tmp_base_goods
(id, brand_id, price, old_price, ordr, is_present, sub_icon_id, fast_delivery, is_new, is_sale)
SELECT g.id, g.brand_id, g.price, g.old_price, g.ordr, g.is_present,
g.sub_icon_id, g.fast_delivery, g.is_new, g.is_sale
FROM pod_cat_good g
WHERE g.cat_id IN (11,33,55,61,84,94,101,163,162,206,212,290,291,328,59,60,2380,571,194,295,317,542) AND g.entry=0 AND g.is_active AND g.is_present_all_mods
UNION
SELECT g.id, g.brand_id, g.price, g.old_price, g.ordr, g.is_present,
g.sub_icon_id, g.fast_delivery, g.is_new, g.is_sale
FROM pod_cat_good g
INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id
WHERE dc.dop_cat_id IN (11,33,55,61,84,94,101,163,162,206,212,290,291,328,59,60,2380,571,194,295,317,542) AND g.entry=0 AND g.is_active AND g.is_present_all_mods [0.079002141952515 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_sub_goods;
CREATE TEMPORARY TABLE tmp_sub_goods (
id INT NOT NULL PRIMARY KEY,
entry INT NOT NULL,
price DECIMAL(10,2),
old_price DECIMAL(10,2),
sub_icon_id INT,
is_present TINYINT(1),
fast_delivery TINYINT(1),
is_new TINYINT(1),
is_sale TINYINT(1),
KEY idx_entry (entry)
) ENGINE=MEMORY [0.0004270076751709 sec]
INSERT INTO tmp_sub_goods
(id, entry, price, old_price, sub_icon_id, is_present, fast_delivery, is_new, is_sale)
SELECT go.id, go.entry, go.price, go.old_price, go.sub_icon_id, go.is_present,
go.fast_delivery, go.is_new, go.is_sale
FROM pod_cat_good go
INNER JOIN tmp_base_goods t ON go.entry = t.id
WHERE go.is_active AND go.is_present [0.0088331699371338 sec]
SELECT g.id /* cats:11,33,55,61,84,94,101,163,162,206,212,290,291,328,59,60,2380,571,194,295,317,542 */
FROM tmp_base_goods g
INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (24,32)
WHERE 1
[0.022323846817017 sec]
CREATE TEMPORARY TABLE temp_brand_counts_6a2b04b5ea947 (
id INT,
gid INT,
INDEX idx_id (id),
INDEX idx_gid (gid)
) [0.00028300285339355 sec]
INSERT INTO temp_brand_counts_6a2b04b5ea947 (id, gid)
SELECT g.brand_id AS id, g.id AS gid /* cats:11,33,55,61,84,94,101,163,162,206,212,290,291,328,59,60,2380,571,194,295,317,542 */
FROM tmp_base_goods g
INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (24,32)
WHERE 1
[0.0026240348815918 sec]
SELECT b.id, b.name AS name, pc.name AS country, b.country_id,
b.image_icon, b.url, b.ordr, pc.code,
COALESCE(tc.count, 0) as count
FROM pod_cat_brand b
INNER JOIN (
SELECT id, COUNT(gid) as count
FROM temp_brand_counts_6a2b04b5ea947
GROUP BY id
HAVING COUNT(gid) > 0
) tc ON b.id = tc.id
LEFT JOIN pod_country pc ON (pc.id = b.country_id AND pc.is_active = 1)
WHERE b.is_active = '1'
ORDER BY b.ordr [0.00062203407287598 sec]
DROP TEMPORARY TABLE IF EXISTS temp_brand_counts_6a2b04b5ea947 [0.00013613700866699 sec]
SELECT g.id /* cats:11,33,55,61,84,94,101,163,162,206,212,290,291,328,59,60,2380,571,194,295,317,542 */,if(g.is_present and g.price >= '349' and g.price <= '8820',least(g.price,ifnull(min(pcg.price),g.price)),ifnull(min(pcg.price),g.price)) min_sort_price,
if(g.is_present and g.price >= '349' and g.price <= '8820',greatest(g.price,ifnull(max(pcg.price),g.price)),ifnull(max(pcg.price),g.price)) max_sort_price
FROM tmp_base_goods g
LEFT JOIN pod_cat_good pcg ON pcg.entry=g.id AND pcg.is_present=1 AND pcg.price >= '349' AND pcg.price <= '8820'
WHERE g.id IN (379638,486584,502012,5345,217999,319492,348530,365949,374265,405768,409263,418384,420427,420435,422213,422223,430665,430667,430669,430671,446204,446243,458436,458438,458439,458442,458447,458451,458455,458459,467552,467781,483357,486579,486580,486582,486583,486586,486588,492392,492394,505306,180352,853,174847,237844,404809,446205,486577,509287,509287,509292,401446,430618,432291,432294,432300,432305,432307,435472,460340,460342,467776,468191,468192,473730,473731,491186,491190,497929,498109,501296,501307,503303,503973,503976,400739,278702,332282,337129,337131,382858,382859,391443,400741,411929,430894,430898,430911,442898,447522,462231,462233,462233,476265,494255,332993,393583,393631,424948,430576,459319,490951,490959,308651,319662,325217,333000,374573,378677,378677,397578,405796,411802,414489,438932,454921,454923,454927,461820,465971,465974,468195,468196,498314,498316,498318,498319,498323,498326,498328,498340,498347,498354,498365,498367,503222,404804,478824,478825,478825)
GROUP BY g.id
ORDER BY g.ordr desc
LIMIT 128, 32 [0.0045731067657471 sec]
SELECT g.video, g.threedvideo, g.is_xit, g.is_action, g.is_sale,
g.sub_is_action, g.is_new, g.is_pay_for_video, g.id, g.cat_id,
g.name AS name, g.name2 AS name2, g.descr, g.size_table, g.artikul, g.image_small,
g.image_big, g.price, g.old_price, g.is_present,
g.is_present_all_mods, g.sub_icon_id,g.url,g.ordr, g.last_items, g.fast_delivery, g.free_delivery, g.gift,
g.timer, g.action_validity,
b.name AS brand_name,b.url as burl,b.id as bid, b.country AS brand_country,c.url as curl, c.name AS cat_name,
si.name AS sub_icon_name,si.icon AS sub_icon,
g.star, g.comment_id, if(g.is_present and g.price >= '349' and g.price <= '8820',least(g.price,ifnull(min(pcg.price),g.price)),ifnull(min(pcg.price),g.price)) as min_sort_price,
if(g.is_present and g.price >= '349' and g.price <= '8820',greatest(g.price,ifnull(max(pcg.price),g.price)),ifnull(max(pcg.price),g.price)) as max_sort_price
FROM pod_cat_good g
INNER JOIN pod_cat_category c ON c.id=g.cat_id
LEFT JOIN pod_cat_brand b ON b.id=g.brand_id
LEFT JOIN pod_sub_icon si ON si.id=g.sub_icon_id
LEFT JOIN pod_cat_good pcg ON (pcg.entry=g.id and pcg.is_present=1 and pcg.price >= '349' and pcg.price <= '8820')
WHERE g.id in (397578,435472,468196,498347,378677,465974,337129,337131,405796)
GROUP BY g.id
ORDER BY g.ordr desc [0.0022890567779541 sec]
SELECT g.ordr, g.is_xit, g.is_pay_for_video, g.is_action, g.is_sale, g.is_new, g.last_items, g.fast_delivery, g.free_delivery, g.gift,
g.timer, g.action_validity,
g.id, g.entry, g.name AS name, g.price, g.old_price, g.artikul, g.sub_icon_id, g.is_present, si.name AS sub_icon_name, si.icon AS sub_icon
FROM pod_cat_good g
LEFT JOIN pod_sub_icon si ON si.id = g.sub_icon_id
WHERE g.entry IN (378677,397578,435472,465974,468196,498347,337129,337131,405796) AND g.is_present = '1' AND g.is_active = '1'
ORDER BY g.entry, g.is_present DESC [0.00072908401489258 sec]
SELECT DISTINCT
ggd2.good_id AS source_good_id,
g.id, g.is_present_all_mods,
pc.name AS name,
g.url,
b.url as burl, c.url as curl,
g.is_present,
pc.code AS color_code,
gg.group_type,
gg.param_name,
gg.param_name_ua,
ggd.text_value,
ggd.icon_path
FROM pod_goods_group_goods ggd2
JOIN pod_goods_group_goods ggd ON ggd2.goods_group_id=ggd.goods_group_id
JOIN pod_goods_group gg ON ggd.goods_group_id=gg.id
JOIN pod_cat_good g ON g.id=ggd.good_id
LEFT JOIN pod_cat_brand b ON g.brand_id=b.id
LEFT JOIN pod_cat_category c ON g.cat_id=c.id
LEFT JOIN pod_colors pc ON pc.id=ggd.color_id
WHERE ggd2.good_id IN (378677,397578,435472,465974,468196,498347,337129,337131,405796)
ORDER BY ggd2.good_id, g.is_present_all_mods DESC [0.0030431747436523 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_base_goods;
DROP TEMPORARY TABLE IF EXISTS tmp_sub_goods [0.00040388107299805 sec]
DEVELOPMENT🌷СКИДКИ ДО 70%
ПЕРЕЙТИ
Производитель: Home line (Украина)
Производитель: Ardesto (КНР)
Производитель: Прованс (Украина)
Производитель: Biederlack (Германия)