SELECT url_to, r404 FROM pod_redirect WHERE BINARY REPLACE(url_from,'/ru/','/') = '/konstruktory_kits/o_16-developing-wader-same_toy.html' LIMIT 0,1 [0.00079202651977539 sec]
SELECT pod_filter.id,pod_filter.url FROM pod_filter WHERE BINARY pod_filter.url IN ('o_16','developing','wader','same_toy') order by url [0.00087785720825195 sec]
SELECT pod_sub_icon.id,pod_sub_icon.url FROM pod_sub_icon WHERE BINARY pod_sub_icon.url IN ('o_16','developing','wader','same_toy') order by url [0.00052404403686523 sec]
select id,url from pod_cat_brand where BINARY url IN ('o_16','developing','wader','same_toy') [0.00095701217651367 sec]
SELECT id, url FROM pod_filter WHERE url IN ('o_16','developing','wader','same_toy') [0.00043988227844238 sec]
SELECT id, url FROM pod_sub_icon WHERE url IN ('o_16','developing','wader','same_toy') [0.00039291381835938 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 (382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (1178,1600) 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 (382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (1178,1600) 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 (382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (1178,1600) 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 (382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (1178,1600) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active [0.060678005218506 sec]
CREATE TEMPORARY TABLE temp_brand_counts_6a2ab01db16bc ( id INT, gid INT, INDEX idx_id (id), INDEX idx_gid (gid) ) [0.00094103813171387 sec]
INSERT INTO temp_brand_counts_6a2ab01db16bc (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 (382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE g.cat_id IN (3297,437,447,446) 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 (382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE dc.dop_cat_id IN (3297,437,447,446) 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 (382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE g.cat_id IN (3297,437,447,446) 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 (382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE dc.dop_cat_id IN (3297,437,447,446) 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 (1178,1600) [0.03196907043457 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_6a2ab01db16bc 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.00044798851013184 sec]
DROP TEMPORARY TABLE IF EXISTS temp_brand_counts_6a2ab01db16bc [0.00013279914855957 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 (382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (1178,1600) 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 (382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (1178,1600) 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 (382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (1178,1600) 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 (382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (1178,1600) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0024590492248535 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 (382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (1178,1600) 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 (382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (1178,1600) 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 (382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (1178,1600) 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 (382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (1178,1600) 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.0043520927429199 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab01dbcb7c; CREATE TEMPORARY TABLE tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab01dbcb7c ( id INT NOT NULL, PRIMARY KEY (id) ) ENGINE=MEMORY; [0.00031208992004395 sec]
INSERT INTO tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab01dbcb7c (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 (382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (1178,1600) 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 (382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (1178,1600) 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 (382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (1178,1600) 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 (382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (1178,1600) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0053260326385498 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab01dbcb7c; CREATE TEMPORARY TABLE tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab01dbcb7c ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00017189979553223 sec]
INSERT INTO tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab01dbcb7c (goods_id, filter_id) SELECT DISTINCT A.id AS goods_id, f.id AS filter_id FROM tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab01dbcb7c A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id_value NOT IN (382,463) INNER JOIN pod_cat_filter cf ON gf.filter_id = cf.filter_id AND cf.category_id = 3297 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.013005018234253 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab01dbcb7c; CREATE TEMPORARY TABLE tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab01dbcb7c ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00043702125549316 sec]
INSERT IGNORE INTO tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab01dbcb7c (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab01dbcb7c p GROUP BY p.filter_id [0.00035595893859863 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_j48se20n1sjv8u0ouco0od38sl_6a2ab01dbcb7c 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.00032615661621094 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab01dbcb7c [0.00033807754516602 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab01dbcb7c [0.00014019012451172 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab01dbcb7c [0.00014805793762207 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc20fd; CREATE TEMPORARY TABLE tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc20fd ( id INT NOT NULL, entry INT NOT NULL, PRIMARY KEY (id), KEY idx_entry (entry) ) ENGINE=MEMORY; [0.00028395652770996 sec]
INSERT INTO tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc20fd (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 (382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (1178,1600) 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 (382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (1178,1600) 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 (382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (1178,1600) 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 (382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (1178,1600) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0052230358123779 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc20fd; CREATE TEMPORARY TABLE tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc20fd ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00054097175598145 sec]
INSERT INTO tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc20fd (goods_id, filter_id) SELECT DISTINCT A.entry AS goods_id, f.id AS filter_id FROM tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc20fd A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id_value NOT IN (382,463) INNER JOIN pod_cat_filter cf ON gf.filter_id = cf.filter_id AND cf.category_id = 3297 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.00069618225097656 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc20fd; CREATE TEMPORARY TABLE tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc20fd ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00029206275939941 sec]
INSERT IGNORE INTO tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc20fd (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc20fd p GROUP BY p.filter_id [0.00021886825561523 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_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc20fd 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.00021696090698242 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc20fd [0.00017189979553223 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc20fd [6.9141387939453E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc20fd [6.413459777832E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc446a; CREATE TEMPORARY TABLE tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc446a ( id INT NOT NULL, entry INT NOT NULL, PRIMARY KEY (id), KEY idx_entry (entry) ) ENGINE=MEMORY [0.00014185905456543 sec]
INSERT INTO tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc446a (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 (463) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (1178,1600) 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 (463) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (1178,1600) 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 (463) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (1178,1600) 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 (463) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (1178,1600) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0022718906402588 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc446a; CREATE TEMPORARY TABLE tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc446a ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY [0.00019001960754395 sec]
INSERT INTO tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc446a (goods_id, filter_id) SELECT DISTINCT A.entry AS goods_id, f.id AS filter_id FROM tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc446a 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.0061800479888916 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc446a; CREATE TEMPORARY TABLE tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc446a ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY [0.00018501281738281 sec]
INSERT INTO tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc446a (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc446a p GROUP BY p.filter_id [0.00017809867858887 sec]
INSERT INTO tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc446a (filter_id, count) SELECT pf.id, 0 FROM pod_filter pf LEFT JOIN tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc446a c ON c.filter_id = pf.id WHERE pf.id in (382) AND c.filter_id IS NULL [0.00014686584472656 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_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc446a 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.00019407272338867 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc446a [0.00012803077697754 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc446a [5.6028366088867E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc446a [4.7922134399414E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc6eca; CREATE TEMPORARY TABLE tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc6eca ( id INT NOT NULL, PRIMARY KEY (id) ) ENGINE=MEMORY; [0.00011396408081055 sec]
INSERT INTO tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc6eca (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 (382) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (1178,1600) 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 (382) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (1178,1600) 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 (382) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (1178,1600) 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 (382) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (1178,1600) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.012144088745117 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc6eca; CREATE TEMPORARY TABLE tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc6eca ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.0003211498260498 sec]
INSERT INTO tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc6eca (goods_id, filter_id) SELECT DISTINCT A.id AS goods_id, f.id AS filter_id FROM tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc6eca 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.0024020671844482 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc6eca; CREATE TEMPORARY TABLE tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc6eca ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00019097328186035 sec]
INSERT INTO tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc6eca (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc6eca p GROUP BY p.filter_id [0.00014710426330566 sec]
INSERT IGNORE INTO tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc6eca (filter_id, count) SELECT pf.id, 0 FROM pod_filter pf LEFT JOIN tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc6eca c ON c.filter_id = pf.id WHERE pf.id in (463) AND c.filter_id IS NULL [0.00017809867858887 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_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc6eca 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.00020813941955566 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc6eca [0.00021600723266602 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc6eca [9.5129013061523E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab01dc6eca [9.2983245849609E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab01dcb463; CREATE TEMPORARY TABLE tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab01dcb463 ( entry INT NOT NULL, sub_icon_id INT NOT NULL, PRIMARY KEY (entry, sub_icon_id) ) ENGINE=MEMORY; [0.00025296211242676 sec]
INSERT IGNORE INTO tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab01dcb463 (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 (382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (1178,1600) 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 (382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (1178,1600) 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 (382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE g.cat_id IN (3297,437,447,446) AND g.brand_id IN (1178,1600) 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 (382) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (463) WHERE dc.dop_cat_id IN (3297,437,447,446) AND g.brand_id IN (1178,1600) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0055170059204102 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab01dcb463; CREATE TEMPORARY TABLE tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab01dcb463 ( sub_icon_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00030994415283203 sec]
INSERT IGNORE INTO tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab01dcb463 (sub_icon_id, count) SELECT sub_icon_id, COUNT(DISTINCT entry) AS count FROM ( SELECT A.entry, A.sub_icon_id FROM tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab01dcb463 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.0003199577331543 sec]
SELECT c.sub_icon_id AS id, c.count, si.entry, si.name_ua AS name, si.url FROM tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab01dcb463 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.00023508071899414 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab01dcb463 [0.000244140625 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab01dcb463 [9.2983245849609E-5 sec]
Низькі ціни на Дитячі конструктори Wader ... Same Toy (Вaдeр ... Сaмe Toи) - великий вибір, фото. Купити Дитячі конструктори Wader ... Same Toy (Вaдeр ... Сaмe Toи) в Києві і Україні

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

ПЕРЕЙТИ

Дитячі конструктори Wader ... Same Toy