SELECT url_to, r404 FROM pod_redirect WHERE BINARY REPLACE(url_from,'/ru/','/') = '/kofty_dlya_devochek/gray-24_months-o_10-o_14-polyester.html' LIMIT 0,1 [0.00037002563476562 sec]
SELECT pod_filter.id,pod_filter.url FROM pod_filter WHERE BINARY pod_filter.url IN ('gray','24_months','o_10','o_14','polyester') order by url [0.000762939453125 sec]
SELECT pod_sub_icon.id,pod_sub_icon.url FROM pod_sub_icon WHERE BINARY pod_sub_icon.url IN ('gray','24_months','o_10','o_14','polyester') order by url [0.00055098533630371 sec]
SELECT id, url FROM pod_filter WHERE url IN ('gray','24_months','o_10','o_14','polyester') [0.00046396255493164 sec]
SELECT id, url FROM pod_sub_icon WHERE url IN ('gray','24_months','o_10','o_14','polyester') [0.00031590461730957 sec]
SELECT f.id, mf.id as mf_id, mf.is_split FROM pod_filter f INNER JOIN pod_filter mf ON f.entry = mf.id WHERE f.id in (264,32,371,380,392) and f.is_active AND mf.is_active ORDER BY mf.id, f.id [0.00025486946105957 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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (264,371,380) WHERE g.cat_id IN (347) AND g.is_present 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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (264,371,380) WHERE dc.dop_cat_id IN (347) AND g.is_present AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT g.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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) INNER JOIN pod_good_filter gf2 ON go.id = gf2.id_good AND gf2.filter_id_value in (264,371,380) WHERE g.cat_id IN (347) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active UNION SELECT g.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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) INNER JOIN pod_good_filter gf2 ON go.id = gf2.id_good AND gf2.filter_id_value in (264,371,380) WHERE dc.dop_cat_id IN (347) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active [0.033021926879883 sec]
CREATE TEMPORARY TABLE temp_brand_counts_6a2aa1f03a626 ( id INT, gid INT, INDEX idx_id (id), INDEX idx_gid (gid) ) [0.00084900856018066 sec]
INSERT INTO temp_brand_counts_6a2aa1f03a626 (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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (264,371,380) WHERE g.cat_id IN (347) AND g.is_present 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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (264,371,380) WHERE dc.dop_cat_id IN (347) AND g.is_present 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 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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) INNER JOIN pod_good_filter gf2 ON go.id = gf2.id_good AND gf2.filter_id_value in (264,371,380) WHERE g.cat_id IN (347) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active UNION SELECT g.brand_id AS id, g.id AS gid -- підтовари в допкатегорії 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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) INNER JOIN pod_good_filter gf2 ON go.id = gf2.id_good AND gf2.filter_id_value in (264,371,380) WHERE dc.dop_cat_id IN (347) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active [0.17895984649658 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_6a2aa1f03a626 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.00084209442138672 sec]
DROP TEMPORARY TABLE IF EXISTS temp_brand_counts_6a2aa1f03a626 [0.00023984909057617 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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (264,371,380) WHERE g.cat_id IN (347) 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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (264,371,380) WHERE dc.dop_cat_id IN (347) 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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) INNER JOIN pod_good_filter gf2 ON go.id = gf2.id_good AND gf2.filter_id_value in (264,371,380) WHERE g.cat_id IN (347) 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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) INNER JOIN pod_good_filter gf2 ON go.id = gf2.id_good AND gf2.filter_id_value in (264,371,380) WHERE dc.dop_cat_id IN (347) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0066859722137451 sec]
SELECT id, name AS name, url FROM pod_filter WHERE id in (264,32,371,380,392) AND is_active='1' [0.0004279613494873 sec]
SELECT cf.id, cf.info AS info, cf.title AS title, cf.metadesc AS metadesc, cf.seo_text AS seo_text, cf.tagH1 AS tagH1, cf.is_active FROM pod_set_cat_filter cf INNER JOIN pod_filter f ON cf.filter_value_id = f.id WHERE cf.cat_id = 347 AND f.id = '264' LIMIT 1 [0.00043010711669922 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1f06bf6a; CREATE TEMPORARY TABLE tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1f06bf6a ( id INT NOT NULL, PRIMARY KEY (id) ) ENGINE=MEMORY; [0.00028705596923828 sec]
INSERT INTO tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1f06bf6a (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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (264,371,380) WHERE g.cat_id IN (347) AND g.is_present 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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (264,371,380) WHERE dc.dop_cat_id IN (347) AND g.is_present AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT g.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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) INNER JOIN pod_good_filter gf2 ON go.id = gf2.id_good AND gf2.filter_id_value in (264,371,380) WHERE g.cat_id IN (347) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active UNION SELECT g.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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) INNER JOIN pod_good_filter gf2 ON go.id = gf2.id_good AND gf2.filter_id_value in (264,371,380) WHERE dc.dop_cat_id IN (347) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0021710395812988 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1f06bf6a; CREATE TEMPORARY TABLE tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1f06bf6a ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00020599365234375 sec]
INSERT INTO tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1f06bf6a (goods_id, filter_id) SELECT DISTINCT A.id AS goods_id, f.id AS filter_id FROM tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1f06bf6a A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id_value NOT IN (32,392,264,371,380) INNER JOIN pod_cat_filter cf ON gf.filter_id = cf.filter_id AND cf.category_id = 347 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.016394138336182 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1f06bf6a; CREATE TEMPORARY TABLE tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1f06bf6a ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00028705596923828 sec]
INSERT IGNORE INTO tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1f06bf6a (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1f06bf6a p GROUP BY p.filter_id [0.00020694732666016 sec]
SELECT c.filter_id, c.count, f.entry, f.name AS name, f.url, f.ord, fm.name AS mname, fm.url AS murl, fm.ord AS mord FROM tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1f06bf6a 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.0001680850982666 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1f06bf6a [0.00037693977355957 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1f06bf6a [0.00011491775512695 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1f06bf6a [8.6069107055664E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1f0713d4; CREATE TEMPORARY TABLE tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1f0713d4 ( id INT NOT NULL, entry INT NOT NULL, PRIMARY KEY (id), KEY idx_entry (entry) ) ENGINE=MEMORY; [0.00019598007202148 sec]
INSERT INTO tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1f0713d4 (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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (264,371,380) WHERE g.cat_id IN (347) 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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (264,371,380) WHERE dc.dop_cat_id IN (347) 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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) INNER JOIN pod_good_filter gf2 ON go.id = gf2.id_good AND gf2.filter_id_value in (264,371,380) WHERE g.cat_id IN (347) 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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) INNER JOIN pod_good_filter gf2 ON go.id = gf2.id_good AND gf2.filter_id_value in (264,371,380) WHERE dc.dop_cat_id IN (347) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0023460388183594 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1f0713d4; CREATE TEMPORARY TABLE tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1f0713d4 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00024795532226562 sec]
INSERT INTO tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1f0713d4 (goods_id, filter_id) SELECT DISTINCT A.entry AS goods_id, f.id AS filter_id FROM tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1f0713d4 A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id_value NOT IN (32,392,264,371,380) INNER JOIN pod_cat_filter cf ON gf.filter_id = cf.filter_id AND cf.category_id = 347 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.00085783004760742 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1f0713d4; CREATE TEMPORARY TABLE tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1f0713d4 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00020694732666016 sec]
INSERT IGNORE INTO tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1f0713d4 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1f0713d4 p GROUP BY p.filter_id [0.00016593933105469 sec]
SELECT c.filter_id, c.count, f.entry, f.name AS name, f.url, f.ord, fm.name AS mname, fm.url AS murl, fm.ord AS mord FROM tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1f0713d4 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.00018095970153809 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1f0713d4 [0.00022101402282715 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1f0713d4 [9.8943710327148E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1f0713d4 [7.6055526733398E-5 sec]
SELECT f.id, mf.id as mf_id, mf.is_split FROM pod_filter f INNER JOIN pod_filter mf ON f.entry = mf.id WHERE f.id in (264,371,380,392) and f.is_active AND mf.is_active ORDER BY mf.id, f.id [0.00029706954956055 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1f072fa0; CREATE TEMPORARY TABLE tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1f072fa0 ( id INT NOT NULL, PRIMARY KEY (id) ) ENGINE=MEMORY; [0.00028610229492188 sec]
INSERT INTO tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1f072fa0 (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 (392) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (264,371,380) WHERE g.cat_id IN (347) AND g.is_present 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 (392) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (264,371,380) WHERE dc.dop_cat_id IN (347) AND g.is_present AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT g.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 (392) INNER JOIN pod_good_filter gf1 ON go.id = gf1.id_good AND gf1.filter_id_value in (264,371,380) WHERE g.cat_id IN (347) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active UNION SELECT g.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 (392) INNER JOIN pod_good_filter gf1 ON go.id = gf1.id_good AND gf1.filter_id_value in (264,371,380) WHERE dc.dop_cat_id IN (347) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0018961429595947 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1f072fa0; CREATE TEMPORARY TABLE tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1f072fa0 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00021219253540039 sec]
INSERT INTO tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1f072fa0 (goods_id, filter_id) SELECT DISTINCT A.id AS goods_id, f.id AS filter_id FROM tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1f072fa0 A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id = 20 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.0005490779876709 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1f072fa0; CREATE TEMPORARY TABLE tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1f072fa0 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00020885467529297 sec]
INSERT INTO tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1f072fa0 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1f072fa0 p GROUP BY p.filter_id [0.00023388862609863 sec]
INSERT IGNORE INTO tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1f072fa0 (filter_id, count) SELECT pf.id, 0 FROM pod_filter pf LEFT JOIN tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1f072fa0 c ON c.filter_id = pf.id WHERE pf.id in (32) AND c.filter_id IS NULL [0.00014996528625488 sec]
SELECT c.filter_id, c.count, f.entry, f.name AS name, f.url, f.ord, fm.name AS mname, fm.url AS murl, fm.ord AS mord FROM tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1f072fa0 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.00018191337585449 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1f072fa0 [0.00015807151794434 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1f072fa0 [7.2002410888672E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1f072fa0 [8.8930130004883E-5 sec]
SELECT f.id, mf.id as mf_id, mf.is_split FROM pod_filter f INNER JOIN pod_filter mf ON f.entry = mf.id WHERE f.id in (264,32,371,380) and f.is_active AND mf.is_active ORDER BY mf.id, f.id [0.00029397010803223 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1f074872; CREATE TEMPORARY TABLE tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1f074872 ( id INT NOT NULL, PRIMARY KEY (id) ) ENGINE=MEMORY; [0.0002281665802002 sec]
INSERT INTO tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1f074872 (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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (264,371,380) WHERE g.cat_id IN (347) AND g.is_present 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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (264,371,380) WHERE dc.dop_cat_id IN (347) AND g.is_present AND g.is_present_all_mods AND g.entry =0 AND g.is_active UNION SELECT g.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 (32) INNER JOIN pod_good_filter gf1 ON go.id = gf1.id_good AND gf1.filter_id_value in (264,371,380) WHERE g.cat_id IN (347) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active UNION SELECT g.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 (32) INNER JOIN pod_good_filter gf1 ON go.id = gf1.id_good AND gf1.filter_id_value in (264,371,380) WHERE dc.dop_cat_id IN (347) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0039668083190918 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1f074872; CREATE TEMPORARY TABLE tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1f074872 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00035691261291504 sec]
INSERT INTO tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1f074872 (goods_id, filter_id) SELECT DISTINCT A.id AS goods_id, f.id AS filter_id FROM tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1f074872 A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id = 122 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.0042378902435303 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1f074872; CREATE TEMPORARY TABLE tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1f074872 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00026297569274902 sec]
INSERT INTO tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1f074872 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1f074872 p GROUP BY p.filter_id [0.00030803680419922 sec]
INSERT IGNORE INTO tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1f074872 (filter_id, count) SELECT pf.id, 0 FROM pod_filter pf LEFT JOIN tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1f074872 c ON c.filter_id = pf.id WHERE pf.id in (392) AND c.filter_id IS NULL [0.00020718574523926 sec]
SELECT c.filter_id, c.count, f.entry, f.name AS name, f.url, f.ord, fm.name AS mname, fm.url AS murl, fm.ord AS mord FROM tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1f074872 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.00033712387084961 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1f074872 [0.0001990795135498 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1f074872 [9.8943710327148E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1f074872 [7.2002410888672E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1f0774e6; CREATE TEMPORARY TABLE tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1f0774e6 ( id INT NOT NULL, entry INT NOT NULL, PRIMARY KEY (id), KEY idx_entry (entry) ) ENGINE=MEMORY [0.00019311904907227 sec]
INSERT INTO tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1f0774e6 (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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) WHERE g.cat_id IN (347) 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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) WHERE dc.dop_cat_id IN (347) 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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) WHERE g.cat_id IN (347) 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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) WHERE dc.dop_cat_id IN (347) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0039269924163818 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1f0774e6; CREATE TEMPORARY TABLE tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1f0774e6 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY [0.00028204917907715 sec]
INSERT INTO tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1f0774e6 (goods_id, filter_id) SELECT DISTINCT A.entry AS goods_id, f.id AS filter_id FROM tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1f0774e6 A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id = 262 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.0005791187286377 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1f0774e6; CREATE TEMPORARY TABLE tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1f0774e6 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY [0.00024080276489258 sec]
INSERT INTO tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1f0774e6 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1f0774e6 p GROUP BY p.filter_id [0.00028586387634277 sec]
INSERT INTO tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1f0774e6 (filter_id, count) SELECT pf.id, 0 FROM pod_filter pf LEFT JOIN tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1f0774e6 c ON c.filter_id = pf.id WHERE pf.id in (264,371,380) AND c.filter_id IS NULL [0.00033402442932129 sec]
SELECT c.filter_id, c.count, f.entry, f.name AS name, f.url, f.ord, fm.name AS mname, fm.url AS murl, fm.ord AS mord FROM tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1f0774e6 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.00031900405883789 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1f0774e6 [0.00018000602722168 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_ku3ec2urparenoflcfutpkk7b5_6a2aa1f0774e6 [9.7036361694336E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1f0774e6 [9.4175338745117E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1f0790ff; CREATE TEMPORARY TABLE tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1f0790ff ( entry INT NOT NULL, sub_icon_id INT NOT NULL, PRIMARY KEY (entry, sub_icon_id) ) ENGINE=MEMORY; [0.00018095970153809 sec]
INSERT IGNORE INTO tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1f0790ff (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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (264,371,380) WHERE g.cat_id IN (347) 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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) INNER JOIN pod_good_filter gf2 ON g.id = gf2.id_good AND gf2.filter_id_value in (264,371,380) WHERE dc.dop_cat_id IN (347) 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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) INNER JOIN pod_good_filter gf2 ON go.id = gf2.id_good AND gf2.filter_id_value in (264,371,380) WHERE g.cat_id IN (347) 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 (32) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (392) INNER JOIN pod_good_filter gf2 ON go.id = gf2.id_good AND gf2.filter_id_value in (264,371,380) WHERE dc.dop_cat_id IN (347) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0043890476226807 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1f0790ff; CREATE TEMPORARY TABLE tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1f0790ff ( sub_icon_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00025105476379395 sec]
INSERT IGNORE INTO tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1f0790ff (sub_icon_id, count) SELECT sub_icon_id, COUNT(DISTINCT entry) AS count FROM ( SELECT A.entry, A.sub_icon_id FROM tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1f0790ff 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.00028800964355469 sec]
SELECT c.sub_icon_id AS id, c.count, si.entry, si.name AS name, si.url FROM tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1f0790ff 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.00021195411682129 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_ku3ec2urparenoflcfutpkk7b5_6a2aa1f0790ff [0.00016903877258301 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_ku3ec2urparenoflcfutpkk7b5_6a2aa1f0790ff [0.00010585784912109 sec]
Кофты для девочек Серый, 24 мес, 10 лет, 14 лет, полиэстер в интернет-магазине «Подушка». Купить кофты и свитера

DEVELOPMENT🌷СКИДКИ ДО 70%

ПЕРЕЙТИ

Кофты и свитера для девочек : серый, 24 мес, 10 лет, 14 лет, полиэстер