SELECT url_to, r404 FROM pod_redirect WHERE BINARY REPLACE(url_from,'/ru/','/') = '/konstruktor_dlya_devochek/o_6-constructor_sets-janod.html' LIMIT 0,1 [0.0004279613494873 sec]
SELECT pod_filter.id,pod_filter.url FROM pod_filter WHERE BINARY pod_filter.url IN ('o_6','constructor_sets','janod') order by url [0.00070500373840332 sec]
SELECT pod_sub_icon.id,pod_sub_icon.url FROM pod_sub_icon WHERE BINARY pod_sub_icon.url IN ('o_6','constructor_sets','janod') order by url [0.00049901008605957 sec]
select id,url from pod_cat_brand where BINARY url IN ('o_6','constructor_sets','janod') [0.0011589527130127 sec]
SELECT id, url FROM pod_filter WHERE url IN ('o_6','constructor_sets','janod') [0.00037717819213867 sec]
SELECT id, url FROM pod_sub_icon WHERE url IN ('o_6','constructor_sets','janod') [0.00022292137145996 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 (364) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (466) WHERE g.cat_id IN (447) AND g.brand_id IN (1664) 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 (364) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (466) WHERE dc.dop_cat_id IN (447) AND g.brand_id IN (1664) 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 go.id = gf0.id_good AND gf0.filter_id_value in (364) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (466) WHERE g.cat_id IN (447) AND g.brand_id IN (1664) 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 go.id = gf0.id_good AND gf0.filter_id_value in (364) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (466) WHERE dc.dop_cat_id IN (447) AND g.brand_id IN (1664) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active [0.036609888076782 sec]
CREATE TEMPORARY TABLE temp_brand_counts_6a2aa78ca9d50 ( id INT, gid INT, INDEX idx_id (id), INDEX idx_gid (gid) ) [0.00045680999755859 sec]
INSERT INTO temp_brand_counts_6a2aa78ca9d50 (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 (364) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (466) WHERE g.cat_id IN (447) 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 (364) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (466) WHERE dc.dop_cat_id IN (447) 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 go.id = gf0.id_good AND gf0.filter_id_value in (364) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (466) WHERE g.cat_id IN (447) 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 go.id = gf0.id_good AND gf0.filter_id_value in (364) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (466) WHERE dc.dop_cat_id IN (447) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active UNION SELECT id, null gid FROM pod_cat_category WHERE id in (1664) [0.028899908065796 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_6a2aa78ca9d50 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.00037503242492676 sec]
DROP TEMPORARY TABLE IF EXISTS temp_brand_counts_6a2aa78ca9d50 [0.00014281272888184 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 (364) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (466) WHERE g.cat_id IN (447) AND g.brand_id IN (1664) 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 (364) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (466) WHERE dc.dop_cat_id IN (447) AND g.brand_id IN (1664) 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 go.id = gf0.id_good AND gf0.filter_id_value in (364) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (466) WHERE g.cat_id IN (447) AND g.brand_id IN (1664) 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 go.id = gf0.id_good AND gf0.filter_id_value in (364) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (466) WHERE dc.dop_cat_id IN (447) AND g.brand_id IN (1664) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0033349990844727 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 (364) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (466) WHERE g.cat_id IN (447) AND g.brand_id IN (1664) 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 (364) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (466) WHERE dc.dop_cat_id IN (447) AND g.brand_id IN (1664) 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 go.id = gf0.id_good AND gf0.filter_id_value in (364) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (466) WHERE g.cat_id IN (447) AND g.brand_id IN (1664) 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 go.id = gf0.id_good AND gf0.filter_id_value in (364) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (466) WHERE dc.dop_cat_id IN (447) AND g.brand_id IN (1664) AND go.is_present AND go.is_active AND g.is_present_all_mods 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.005983829498291 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cb604d; CREATE TEMPORARY TABLE tmp_A_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cb604d ( id INT NOT NULL, PRIMARY KEY (id) ) ENGINE=MEMORY; [0.00025105476379395 sec]
INSERT INTO tmp_A_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cb604d (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 (364) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (466) WHERE g.cat_id IN (447) AND g.brand_id IN (1664) 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 (364) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (466) WHERE dc.dop_cat_id IN (447) AND g.brand_id IN (1664) 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 go.id = gf0.id_good AND gf0.filter_id_value in (364) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (466) WHERE g.cat_id IN (447) AND g.brand_id IN (1664) 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 go.id = gf0.id_good AND gf0.filter_id_value in (364) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (466) WHERE dc.dop_cat_id IN (447) AND g.brand_id IN (1664) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0022289752960205 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cb604d; CREATE TEMPORARY TABLE tmp_pairs_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cb604d ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00021910667419434 sec]
INSERT INTO tmp_pairs_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cb604d (goods_id, filter_id) SELECT DISTINCT A.id AS goods_id, f.id AS filter_id FROM tmp_A_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cb604d A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id_value NOT IN (364,466) INNER JOIN pod_cat_filter cf ON gf.filter_id = cf.filter_id AND cf.category_id = 447 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.0064949989318848 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cb604d; CREATE TEMPORARY TABLE tmp_counts_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cb604d ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00020813941955566 sec]
INSERT IGNORE INTO tmp_counts_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cb604d (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cb604d p GROUP BY p.filter_id [0.00020408630371094 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_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cb604d 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.00015401840209961 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cb604d [0.00020885467529297 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cb604d [9.7036361694336E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cb604d [8.2015991210938E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cb8c34; CREATE TEMPORARY TABLE tmp_A_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cb8c34 ( id INT NOT NULL, entry INT NOT NULL, PRIMARY KEY (id), KEY idx_entry (entry) ) ENGINE=MEMORY; [0.00015592575073242 sec]
INSERT INTO tmp_A_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cb8c34 (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 (364) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (466) WHERE g.cat_id IN (447) AND g.brand_id IN (1664) 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 (364) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (466) WHERE dc.dop_cat_id IN (447) AND g.brand_id IN (1664) 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 go.id = gf0.id_good AND gf0.filter_id_value in (364) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (466) WHERE g.cat_id IN (447) AND g.brand_id IN (1664) 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 go.id = gf0.id_good AND gf0.filter_id_value in (364) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (466) WHERE dc.dop_cat_id IN (447) AND g.brand_id IN (1664) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0019538402557373 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cb8c34; CREATE TEMPORARY TABLE tmp_pairs_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cb8c34 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00021505355834961 sec]
INSERT INTO tmp_pairs_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cb8c34 (goods_id, filter_id) SELECT DISTINCT A.entry AS goods_id, f.id AS filter_id FROM tmp_A_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cb8c34 A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id_value NOT IN (364,466) INNER JOIN pod_cat_filter cf ON gf.filter_id = cf.filter_id AND cf.category_id = 447 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.00036382675170898 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cb8c34; CREATE TEMPORARY TABLE tmp_counts_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cb8c34 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00020194053649902 sec]
INSERT IGNORE INTO tmp_counts_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cb8c34 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cb8c34 p GROUP BY p.filter_id [0.00017499923706055 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_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cb8c34 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.00023484230041504 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cb8c34 [0.00025010108947754 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cb8c34 [0.00011897087097168 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cb8c34 [9.5129013061523E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cba103; CREATE TEMPORARY TABLE tmp_A_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cba103 ( id INT NOT NULL, entry INT NOT NULL, PRIMARY KEY (id), KEY idx_entry (entry) ) ENGINE=MEMORY [0.00021696090698242 sec]
INSERT INTO tmp_A_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cba103 (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 (466) WHERE g.cat_id IN (447) AND g.brand_id IN (1664) 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 (466) WHERE dc.dop_cat_id IN (447) AND g.brand_id IN (1664) 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 (466) WHERE g.cat_id IN (447) AND g.brand_id IN (1664) 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 (466) WHERE dc.dop_cat_id IN (447) AND g.brand_id IN (1664) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.013451099395752 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cba103; CREATE TEMPORARY TABLE tmp_pairs_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cba103 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY [0.00074315071105957 sec]
INSERT INTO tmp_pairs_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cba103 (goods_id, filter_id) SELECT DISTINCT A.entry AS goods_id, f.id AS filter_id FROM tmp_A_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cba103 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.0079951286315918 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cba103; CREATE TEMPORARY TABLE tmp_counts_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cba103 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY [0.00019407272338867 sec]
INSERT INTO tmp_counts_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cba103 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cba103 p GROUP BY p.filter_id [0.00013995170593262 sec]
INSERT INTO tmp_counts_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cba103 (filter_id, count) SELECT pf.id, 0 FROM pod_filter pf LEFT JOIN tmp_counts_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cba103 c ON c.filter_id = pf.id WHERE pf.id in (364) AND c.filter_id IS NULL [0.00029110908508301 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_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cba103 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.00031614303588867 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cba103 [0.00016999244689941 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cba103 [6.4849853515625E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cba103 [6.6995620727539E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cc015b; CREATE TEMPORARY TABLE tmp_A_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cc015b ( id INT NOT NULL, PRIMARY KEY (id) ) ENGINE=MEMORY; [0.00013399124145508 sec]
INSERT INTO tmp_A_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cc015b (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 (364) WHERE g.cat_id IN (447) AND g.brand_id IN (1664) 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 (364) WHERE dc.dop_cat_id IN (447) AND g.brand_id IN (1664) 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 go.id = gf0.id_good AND gf0.filter_id_value in (364) WHERE g.cat_id IN (447) AND g.brand_id IN (1664) 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 go.id = gf0.id_good AND gf0.filter_id_value in (364) WHERE dc.dop_cat_id IN (447) AND g.brand_id IN (1664) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0022459030151367 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cc015b; CREATE TEMPORARY TABLE tmp_pairs_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cc015b ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00016093254089355 sec]
INSERT INTO tmp_pairs_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cc015b (goods_id, filter_id) SELECT DISTINCT A.id AS goods_id, f.id AS filter_id FROM tmp_A_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cc015b A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id = 461 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.0021770000457764 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cc015b; CREATE TEMPORARY TABLE tmp_counts_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cc015b ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00015091896057129 sec]
INSERT INTO tmp_counts_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cc015b (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cc015b p GROUP BY p.filter_id [0.00012087821960449 sec]
INSERT IGNORE INTO tmp_counts_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cc015b (filter_id, count) SELECT pf.id, 0 FROM pod_filter pf LEFT JOIN tmp_counts_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cc015b c ON c.filter_id = pf.id WHERE pf.id in (466) AND c.filter_id IS NULL [0.00014805793762207 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_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cc015b 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.00012898445129395 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cc015b [0.00014400482177734 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cc015b [6.0081481933594E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cc015b [6.2942504882812E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cc1960; CREATE TEMPORARY TABLE tmp_A_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cc1960 ( entry INT NOT NULL, sub_icon_id INT NOT NULL, PRIMARY KEY (entry, sub_icon_id) ) ENGINE=MEMORY; [0.00012111663818359 sec]
INSERT IGNORE INTO tmp_A_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cc1960 (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 (364) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (466) WHERE g.cat_id IN (447) AND g.brand_id IN (1664) 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 (364) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (466) WHERE dc.dop_cat_id IN (447) AND g.brand_id IN (1664) 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 go.id = gf0.id_good AND gf0.filter_id_value in (364) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (466) WHERE g.cat_id IN (447) AND g.brand_id IN (1664) 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 go.id = gf0.id_good AND gf0.filter_id_value in (364) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (466) WHERE dc.dop_cat_id IN (447) AND g.brand_id IN (1664) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0020899772644043 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cc1960; CREATE TEMPORARY TABLE tmp_counts_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cc1960 ( sub_icon_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00016498565673828 sec]
INSERT IGNORE INTO tmp_counts_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cc1960 (sub_icon_id, count) SELECT sub_icon_id, COUNT(DISTINCT entry) AS count FROM ( SELECT A.entry, A.sub_icon_id FROM tmp_A_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cc1960 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.00021505355834961 sec]
SELECT c.sub_icon_id AS id, c.count, si.entry, si.name AS name, si.url FROM tmp_counts_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cc1960 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.00010991096496582 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cc1960 [0.00012612342834473 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_pjr5tti169bp6g6tj2p8ps285k_6a2aa78cc1960 [8.3208084106445E-5 sec]
Низкие цены на Конструктор для девочек Janod (Жaнoд) – большой выбор, фото. Купить Конструктор для девочек Janod (Жaнoд) в Киеве и Украине

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

ПЕРЕЙТИ

Конструктор для девочек Janod