SELECT url_to, r404 FROM pod_redirect WHERE BINARY REPLACE(url_from,'/ru/','/') = '/pledy/eda-soho-homytex.html' LIMIT 0,1 [0.00035715103149414 sec]
SELECT pod_filter.id,pod_filter.url FROM pod_filter WHERE BINARY pod_filter.url IN ('eda','soho','homytex') order by url [0.00085210800170898 sec]
SELECT pod_sub_icon.id,pod_sub_icon.url FROM pod_sub_icon WHERE BINARY pod_sub_icon.url IN ('eda','soho','homytex') order by url [0.00057816505432129 sec]
select id,url from pod_cat_brand where BINARY url IN ('eda','soho','homytex') [0.00096702575683594 sec]
SELECT id, url FROM pod_filter WHERE url IN ('eda','soho','homytex') [0.00031089782714844 sec]
SELECT id, url FROM pod_sub_icon WHERE url IN ('eda','soho','homytex') [0.00027894973754883 sec]
SELECT g.id -- основні FROM pod_cat_good g INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (2529) 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.brand_id IN (2366,2408) AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT g.id -- основні в допкатегорії FROM pod_cat_good g INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (2529) 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.brand_id IN (2366,2408) AND g.is_present_all_mods AND g.entry =0 AND g.is_active [0.01657509803772 sec]
CREATE TEMPORARY TABLE temp_brand_counts_6a2ac167d2efd ( id INT, gid INT, INDEX idx_id (id), INDEX idx_gid (gid) ) [0.00041294097900391 sec]
INSERT INTO temp_brand_counts_6a2ac167d2efd (id, gid) SELECT g.brand_id AS id, g.id AS gid -- основні FROM pod_cat_good g INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (2529) 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.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT g.brand_id AS id, g.id AS gid -- основні в допкатегорії FROM pod_cat_good g INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (2529) 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.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT id, null gid FROM pod_cat_category WHERE id in (2366,2408) [0.044623851776123 sec]
SELECT b.id, b.name_ua AS name, pc.name_ua 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_6a2ac167d2efd 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.00066399574279785 sec]
DROP TEMPORARY TABLE IF EXISTS temp_brand_counts_6a2ac167d2efd [0.00016903877258301 sec]
SELECT MIN(min_price) AS min_price, MAX(max_price) AS max_price FROM ( SELECT MIN(g.price) AS min_price, MAX(g.price) AS max_price -- основні FROM pod_cat_good g INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (2529) 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.brand_id IN (2366,2408) AND g.is_present AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT MIN(g.price) AS min_price, MAX(g.price) AS max_price -- основні в допкатегорії FROM pod_cat_good g INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (2529) 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.brand_id IN (2366,2408) AND g.is_present AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT MIN(go.price) AS min_price, MAX(go.price) AS max_price -- підтовари FROM pod_cat_good go INNER JOIN pod_cat_good g ON go.entry = g.id INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (2529) 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.brand_id IN (2366,2408) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active UNION SELECT MIN(go.price) AS min_price, MAX(go.price) AS max_price -- підтовари в допкатегорії FROM pod_cat_good go INNER JOIN pod_cat_good g ON go.entry = g.id INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (2529) 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.brand_id IN (2366,2408) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.014481782913208 sec]
SELECT g.id,if(g.is_present and g.price >= '0' and g.price <= '99999',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 >= '0' and g.price <= '99999',greatest(g.price,ifnull(max(pcg.price),g.price)),ifnull(max(pcg.price),g.price)) max_sort_price FROM ( SELECT g.id -- основні FROM pod_cat_good g INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (2529) 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.brand_id IN (2366,2408) AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT g.id -- основні в допкатегорії FROM pod_cat_good g INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (2529) 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.brand_id IN (2366,2408) AND g.is_present_all_mods AND g.entry =0 AND g.is_active ) a INNER JOIN pod_cat_good g ON a.id = g.id LEFT JOIN pod_cat_good pcg ON pcg.entry=g.id and pcg.is_present=1 and pcg.is_present=1 and pcg.price >= '0' and pcg.price <= '99999' GROUP BY g.id ORDER BY g.ordr desc LIMIT 0, 32 [0.0058989524841309 sec]
SELECT name_ua AS name, url FROM pod_cat_brand WHERE id in (2366,2408) [0.00021600723266602 sec]
SELECT name_ua AS name, url FROM pod_cat_brand WHERE id='2366.2408' [0.00014400482177734 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_i303r3fnds1pinl1gud5354pcp_6a2ac167e534a; CREATE TEMPORARY TABLE tmp_A_i303r3fnds1pinl1gud5354pcp_6a2ac167e534a ( id INT NOT NULL, PRIMARY KEY (id) ) ENGINE=MEMORY; [0.00027799606323242 sec]
INSERT INTO tmp_A_i303r3fnds1pinl1gud5354pcp_6a2ac167e534a (id) SELECT A.id FROM ( SELECT g.id -- основні FROM pod_cat_good g INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (2529) 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.brand_id IN (2366,2408) AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT g.id -- основні в допкатегорії FROM pod_cat_good g INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (2529) 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.brand_id IN (2366,2408) AND g.is_present_all_mods AND g.entry =0 AND g.is_active ) A [0.0028409957885742 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_i303r3fnds1pinl1gud5354pcp_6a2ac167e534a; CREATE TEMPORARY TABLE tmp_pairs_i303r3fnds1pinl1gud5354pcp_6a2ac167e534a ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00022506713867188 sec]
INSERT INTO tmp_pairs_i303r3fnds1pinl1gud5354pcp_6a2ac167e534a (goods_id, filter_id) SELECT DISTINCT A.id AS goods_id, f.id AS filter_id FROM tmp_A_i303r3fnds1pinl1gud5354pcp_6a2ac167e534a A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id_value NOT IN (2529) INNER JOIN pod_cat_filter cf ON gf.filter_id = cf.filter_id AND cf.category_id = 11 INNER JOIN pod_filter fm ON gf.filter_id = fm.id AND fm.is_split = 0 AND fm.is_active INNER JOIN pod_filter f ON gf.filter_id_value = f.id AND f.is_active [0.0033481121063232 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_i303r3fnds1pinl1gud5354pcp_6a2ac167e534a; CREATE TEMPORARY TABLE tmp_counts_i303r3fnds1pinl1gud5354pcp_6a2ac167e534a ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.0003058910369873 sec]
INSERT IGNORE INTO tmp_counts_i303r3fnds1pinl1gud5354pcp_6a2ac167e534a (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_i303r3fnds1pinl1gud5354pcp_6a2ac167e534a p GROUP BY p.filter_id [0.00025510787963867 sec]
SELECT c.filter_id, c.count, f.entry, f.name_ua AS name, f.url, f.ord, fm.name_ua AS mname, fm.url AS murl, fm.ord AS mord FROM tmp_counts_i303r3fnds1pinl1gud5354pcp_6a2ac167e534a c INNER JOIN pod_filter f ON c.filter_id = f.id INNER JOIN pod_filter fm ON f.entry = fm.id ORDER BY fm.ord DESC, f.ord DESC, c.filter_id [0.00024199485778809 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_i303r3fnds1pinl1gud5354pcp_6a2ac167e534a [0.00025296211242676 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_i303r3fnds1pinl1gud5354pcp_6a2ac167e534a [0.00011897087097168 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_i303r3fnds1pinl1gud5354pcp_6a2ac167e534a [9.5844268798828E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_i303r3fnds1pinl1gud5354pcp_6a2ac167e7622; CREATE TEMPORARY TABLE tmp_A_i303r3fnds1pinl1gud5354pcp_6a2ac167e7622 ( id INT NOT NULL, entry INT NOT NULL, PRIMARY KEY (id), KEY idx_entry (entry) ) ENGINE=MEMORY; [0.00021505355834961 sec]
INSERT INTO tmp_A_i303r3fnds1pinl1gud5354pcp_6a2ac167e7622 (id, entry) SELECT A.id, A.entry FROM ( SELECT g.id as id, g.id as entry -- основні FROM pod_cat_good g INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (2529) 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.brand_id IN (2366,2408) AND g.is_present AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT g.id as id, g.id as entry -- основні в допкатегорії FROM pod_cat_good g INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (2529) 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.brand_id IN (2366,2408) AND g.is_present AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT go.id as id, g.id as entry -- підтовари FROM pod_cat_good go INNER JOIN pod_cat_good g ON go.entry = g.id INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (2529) 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.brand_id IN (2366,2408) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active UNION SELECT go.id as id, g.id as entry -- підтовари в допкатегорії FROM pod_cat_good go INNER JOIN pod_cat_good g ON go.entry = g.id INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (2529) 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.brand_id IN (2366,2408) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0043351650238037 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_i303r3fnds1pinl1gud5354pcp_6a2ac167e7622; CREATE TEMPORARY TABLE tmp_pairs_i303r3fnds1pinl1gud5354pcp_6a2ac167e7622 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.0002439022064209 sec]
INSERT INTO tmp_pairs_i303r3fnds1pinl1gud5354pcp_6a2ac167e7622 (goods_id, filter_id) SELECT DISTINCT A.entry AS goods_id, f.id AS filter_id FROM tmp_A_i303r3fnds1pinl1gud5354pcp_6a2ac167e7622 A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id_value NOT IN (2529) INNER JOIN pod_cat_filter cf ON gf.filter_id = cf.filter_id AND cf.category_id = 11 INNER JOIN pod_filter fm ON gf.filter_id = fm.id AND fm.is_split = 1 AND fm.is_active INNER JOIN pod_filter f ON gf.filter_id_value = f.id AND f.is_active [0.00033688545227051 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_i303r3fnds1pinl1gud5354pcp_6a2ac167e7622; CREATE TEMPORARY TABLE tmp_counts_i303r3fnds1pinl1gud5354pcp_6a2ac167e7622 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00019288063049316 sec]
INSERT IGNORE INTO tmp_counts_i303r3fnds1pinl1gud5354pcp_6a2ac167e7622 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_i303r3fnds1pinl1gud5354pcp_6a2ac167e7622 p GROUP BY p.filter_id [0.00018405914306641 sec]
SELECT c.filter_id, c.count, f.entry, f.name_ua AS name, f.url, f.ord, fm.name_ua AS mname, fm.url AS murl, fm.ord AS mord FROM tmp_counts_i303r3fnds1pinl1gud5354pcp_6a2ac167e7622 c INNER JOIN pod_filter f ON c.filter_id = f.id INNER JOIN pod_filter fm ON f.entry = fm.id ORDER BY fm.ord DESC, f.ord DESC, c.filter_id [0.00015902519226074 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_i303r3fnds1pinl1gud5354pcp_6a2ac167e7622 [0.00021791458129883 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_i303r3fnds1pinl1gud5354pcp_6a2ac167e7622 [0.00011706352233887 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_i303r3fnds1pinl1gud5354pcp_6a2ac167e7622 [7.8916549682617E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_i303r3fnds1pinl1gud5354pcp_6a2ac167e925c; CREATE TEMPORARY TABLE tmp_A_i303r3fnds1pinl1gud5354pcp_6a2ac167e925c ( id INT NOT NULL, PRIMARY KEY (id) ) ENGINE=MEMORY; [0.00012707710266113 sec]
INSERT INTO tmp_A_i303r3fnds1pinl1gud5354pcp_6a2ac167e925c (id) SELECT A.id FROM ( SELECT g.id -- основні FROM pod_cat_good g USE INDEX (idx_cat_entry_active_present) 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.brand_id IN (2366,2408) AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT g.id -- основні в допкатегорії 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.brand_id IN (2366,2408) AND g.is_present_all_mods AND g.entry =0 AND g.is_active ) A [0.024587869644165 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_i303r3fnds1pinl1gud5354pcp_6a2ac167e925c; CREATE TEMPORARY TABLE tmp_pairs_i303r3fnds1pinl1gud5354pcp_6a2ac167e925c ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00028610229492188 sec]
INSERT INTO tmp_pairs_i303r3fnds1pinl1gud5354pcp_6a2ac167e925c (goods_id, filter_id) SELECT DISTINCT A.id AS goods_id, f.id AS filter_id FROM tmp_A_i303r3fnds1pinl1gud5354pcp_6a2ac167e925c A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id = 2521 INNER JOIN pod_filter fm ON gf.filter_id = fm.id AND fm.is_split = 0 AND fm.is_active INNER JOIN pod_filter f ON gf.filter_id_value = f.id AND f.is_active [0.0062699317932129 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_i303r3fnds1pinl1gud5354pcp_6a2ac167e925c; CREATE TEMPORARY TABLE tmp_counts_i303r3fnds1pinl1gud5354pcp_6a2ac167e925c ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00041818618774414 sec]
INSERT INTO tmp_counts_i303r3fnds1pinl1gud5354pcp_6a2ac167e925c (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_i303r3fnds1pinl1gud5354pcp_6a2ac167e925c p GROUP BY p.filter_id [0.00038599967956543 sec]
INSERT IGNORE INTO tmp_counts_i303r3fnds1pinl1gud5354pcp_6a2ac167e925c (filter_id, count) SELECT pf.id, 0 FROM pod_filter pf LEFT JOIN tmp_counts_i303r3fnds1pinl1gud5354pcp_6a2ac167e925c c ON c.filter_id = pf.id WHERE pf.id in (2529) AND c.filter_id IS NULL [0.00028800964355469 sec]
SELECT c.filter_id, c.count, f.entry, f.name_ua AS name, f.url, f.ord, fm.name_ua AS mname, fm.url AS murl, fm.ord AS mord FROM tmp_counts_i303r3fnds1pinl1gud5354pcp_6a2ac167e925c c INNER JOIN pod_filter f ON c.filter_id = f.id INNER JOIN pod_filter fm ON f.entry = fm.id ORDER BY fm.ord DESC, f.ord DESC, c.filter_id [0.0004119873046875 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_i303r3fnds1pinl1gud5354pcp_6a2ac167e925c [0.00027704238891602 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_i303r3fnds1pinl1gud5354pcp_6a2ac167e925c [0.00011706352233887 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_i303r3fnds1pinl1gud5354pcp_6a2ac167e925c [0.00014114379882812 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_i303r3fnds1pinl1gud5354pcp_6a2ac167f1a25; CREATE TEMPORARY TABLE tmp_A_i303r3fnds1pinl1gud5354pcp_6a2ac167f1a25 ( entry INT NOT NULL, sub_icon_id INT NOT NULL, PRIMARY KEY (entry, sub_icon_id) ) ENGINE=MEMORY; [0.00029087066650391 sec]
INSERT IGNORE INTO tmp_A_i303r3fnds1pinl1gud5354pcp_6a2ac167f1a25 (entry, sub_icon_id) SELECT DISTINCT A.entry, A.sub_icon_id FROM ( SELECT g.id as id, g.id as entry, g.sub_icon_id -- основні FROM pod_cat_good g INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (2529) 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.brand_id IN (2366,2408) AND g.is_present AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT g.id as id, g.id as entry, g.sub_icon_id -- основні в допкатегорії FROM pod_cat_good g INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (2529) 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.brand_id IN (2366,2408) AND g.is_present AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT go.id as id, g.id as entry, go.sub_icon_id -- підтовари FROM pod_cat_good go INNER JOIN pod_cat_good g ON go.entry = g.id INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (2529) 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.brand_id IN (2366,2408) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active UNION SELECT go.id as id, g.id as entry, go.sub_icon_id -- підтовари в допкатегорії FROM pod_cat_good go INNER JOIN pod_cat_good g ON go.entry = g.id INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id INNER JOIN pod_good_filter gf0 ON g.id = gf0.id_good AND gf0.filter_id_value in (2529) 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.brand_id IN (2366,2408) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.010909080505371 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_i303r3fnds1pinl1gud5354pcp_6a2ac167f1a25; CREATE TEMPORARY TABLE tmp_counts_i303r3fnds1pinl1gud5354pcp_6a2ac167f1a25 ( sub_icon_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00040507316589355 sec]
INSERT IGNORE INTO tmp_counts_i303r3fnds1pinl1gud5354pcp_6a2ac167f1a25 (sub_icon_id, count) SELECT sub_icon_id, COUNT(DISTINCT entry) AS count FROM ( SELECT A.entry, A.sub_icon_id FROM tmp_A_i303r3fnds1pinl1gud5354pcp_6a2ac167f1a25 A INNER JOIN pod_sub_icon si ON A.sub_icon_id = si.id AND si.is_active_filter = 1 ) AA GROUP BY sub_icon_id [0.00043606758117676 sec]
SELECT c.sub_icon_id AS id, c.count, si.entry, si.name_ua AS name, si.url FROM tmp_counts_i303r3fnds1pinl1gud5354pcp_6a2ac167f1a25 c INNER JOIN pod_sub_icon si ON c.sub_icon_id = si.id AND si.is_active_filter = 1 ORDER BY si.ordr, si.name [0.00023293495178223 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_i303r3fnds1pinl1gud5354pcp_6a2ac167f1a25 [0.00019693374633789 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_i303r3fnds1pinl1gud5354pcp_6a2ac167f1a25 [9.7036361694336E-5 sec]
Пледи Soho ... Homytex (Сoхo ... Хoмитeкс) - великий вибір, фото, відгуки. Купити Пледи Soho ... Homytex в Києві і Україні

DEVELOPMENT🌷ЗНИЖКИ ДО 70%

ПЕРЕЙТИ

Пледи Soho ... Homytex