SELECT url_to, r404 FROM pod_redirect WHERE BINARY REPLACE(url_from,'/ru/','/') = '/razvivayushchie/o_3-o_4-animals_developing-trefl.html' LIMIT 0,1 [0.00056791305541992 sec]
SELECT pod_filter.id,pod_filter.url FROM pod_filter WHERE BINARY pod_filter.url IN ('o_3','o_4','animals_developing','trefl') order by url [0.00074315071105957 sec]
SELECT pod_sub_icon.id,pod_sub_icon.url FROM pod_sub_icon WHERE BINARY pod_sub_icon.url IN ('o_3','o_4','animals_developing','trefl') order by url [0.00056004524230957 sec]
select id,url from pod_cat_brand where BINARY url IN ('o_3','o_4','animals_developing','trefl') [0.0021331310272217 sec]
SELECT cb.metaindex, cb.metafollow FROM pod_set_cat_brand cb INNER JOIN pod_cat_category c ON cb.cat_id = c.id WHERE c.url = 'razvivayushchie' AND cb.brand_id = 937 AND cb.is_active = 1 LIMIT 1 [0.00050520896911621 sec]
SELECT id, url FROM pod_filter WHERE url IN ('o_3','o_4','animals_developing','trefl') [0.00066208839416504 sec]
SELECT id, url FROM pod_sub_icon WHERE url IN ('o_3','o_4','animals_developing','trefl') [0.00058794021606445 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 (501,265,362) and f.is_active AND mf.is_active ORDER BY mf.id, f.id [0.00030899047851562 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 (265,362) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (501) WHERE g.cat_id IN (146) AND g.brand_id IN (937) 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 (265,362) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (501) WHERE dc.dop_cat_id IN (146) AND g.brand_id IN (937) 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 (265,362) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (501) WHERE g.cat_id IN (146) AND g.brand_id IN (937) 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 (265,362) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (501) WHERE dc.dop_cat_id IN (146) AND g.brand_id IN (937) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active [0.015894889831543 sec]
CREATE TEMPORARY TABLE temp_brand_counts_6a2ab023cbbd8 ( id INT, gid INT, INDEX idx_id (id), INDEX idx_gid (gid) ) [0.0003199577331543 sec]
INSERT INTO temp_brand_counts_6a2ab023cbbd8 (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 (265,362) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (501) WHERE g.cat_id IN (146) 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 (265,362) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (501) WHERE dc.dop_cat_id IN (146) 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 (265,362) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (501) WHERE g.cat_id IN (146) 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 (265,362) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (501) WHERE dc.dop_cat_id IN (146) 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 (937) [0.038288116455078 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_6a2ab023cbbd8 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.00074100494384766 sec]
DROP TEMPORARY TABLE IF EXISTS temp_brand_counts_6a2ab023cbbd8 [0.00019097328186035 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 (265,362) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (501) WHERE g.cat_id IN (146) AND g.brand_id IN (937) 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 (265,362) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (501) WHERE dc.dop_cat_id IN (146) AND g.brand_id IN (937) 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 (265,362) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (501) WHERE g.cat_id IN (146) AND g.brand_id IN (937) 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 (265,362) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (501) WHERE dc.dop_cat_id IN (146) AND g.brand_id IN (937) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0029659271240234 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 (265,362) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (501) WHERE g.cat_id IN (146) AND g.brand_id IN (937) 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 (265,362) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (501) WHERE dc.dop_cat_id IN (146) AND g.brand_id IN (937) 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 (265,362) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (501) WHERE g.cat_id IN (146) AND g.brand_id IN (937) 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 (265,362) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (501) WHERE dc.dop_cat_id IN (146) AND g.brand_id IN (937) 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.0053410530090332 sec]
SELECT cb.id, cb.info_ua AS info, cb.title_ua AS title, cb.metadesc_ua AS metadesc, cb.seo_text_ua AS seo_text, cb.tagH1_ua AS tagH1, cb.canonical, cb.is_active FROM pod_set_cat_brand cb WHERE cb.cat_id = 146 AND cb.brand_id = 937 AND cb.is_active = 1 LIMIT 1 [0.00030016899108887 sec]
SELECT url FROM pod_cat_brand WHERE id = 937 [0.00032997131347656 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab023da100; CREATE TEMPORARY TABLE tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab023da100 ( id INT NOT NULL, PRIMARY KEY (id) ) ENGINE=MEMORY; [0.00031495094299316 sec]
INSERT INTO tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab023da100 (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 (265,362) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (501) WHERE g.cat_id IN (146) AND g.brand_id IN (937) 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 (265,362) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (501) WHERE dc.dop_cat_id IN (146) AND g.brand_id IN (937) 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 (265,362) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (501) WHERE g.cat_id IN (146) AND g.brand_id IN (937) 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 (265,362) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (501) WHERE dc.dop_cat_id IN (146) AND g.brand_id IN (937) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0028889179229736 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab023da100; CREATE TEMPORARY TABLE tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab023da100 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00027012825012207 sec]
INSERT INTO tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab023da100 (goods_id, filter_id) SELECT DISTINCT A.id AS goods_id, f.id AS filter_id FROM tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab023da100 A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id_value NOT IN (265,362,501) INNER JOIN pod_cat_filter cf ON gf.filter_id = cf.filter_id AND cf.category_id = 146 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.0091581344604492 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab023da100; CREATE TEMPORARY TABLE tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab023da100 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00037598609924316 sec]
INSERT IGNORE INTO tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab023da100 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab023da100 p GROUP BY p.filter_id [0.00024986267089844 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_6a2ab023da100 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.00019001960754395 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab023da100 [0.00031113624572754 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab023da100 [0.00018405914306641 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab023da100 [0.00021791458129883 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab023dde79; CREATE TEMPORARY TABLE tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab023dde79 ( id INT NOT NULL, entry INT NOT NULL, PRIMARY KEY (id), KEY idx_entry (entry) ) ENGINE=MEMORY; [0.00035405158996582 sec]
INSERT INTO tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab023dde79 (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 (265,362) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (501) WHERE g.cat_id IN (146) AND g.brand_id IN (937) 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 (265,362) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (501) WHERE dc.dop_cat_id IN (146) AND g.brand_id IN (937) 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 (265,362) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (501) WHERE g.cat_id IN (146) AND g.brand_id IN (937) 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 (265,362) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (501) WHERE dc.dop_cat_id IN (146) AND g.brand_id IN (937) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0051531791687012 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab023dde79; CREATE TEMPORARY TABLE tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab023dde79 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00040316581726074 sec]
INSERT INTO tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab023dde79 (goods_id, filter_id) SELECT DISTINCT A.entry AS goods_id, f.id AS filter_id FROM tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab023dde79 A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id_value NOT IN (265,362,501) INNER JOIN pod_cat_filter cf ON gf.filter_id = cf.filter_id AND cf.category_id = 146 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.00073909759521484 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab023dde79; CREATE TEMPORARY TABLE tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab023dde79 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00038909912109375 sec]
INSERT IGNORE INTO tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab023dde79 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab023dde79 p GROUP BY p.filter_id [0.00030398368835449 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_6a2ab023dde79 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.00032711029052734 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab023dde79 [0.00026893615722656 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab023dde79 [0.00011801719665527 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab023dde79 [0.00012779235839844 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab023e0595; CREATE TEMPORARY TABLE tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab023e0595 ( id INT NOT NULL, entry INT NOT NULL, PRIMARY KEY (id), KEY idx_entry (entry) ) ENGINE=MEMORY [0.0002899169921875 sec]
INSERT INTO tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab023e0595 (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 (501) WHERE g.cat_id IN (146) AND g.brand_id IN (937) 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 (501) WHERE dc.dop_cat_id IN (146) AND g.brand_id IN (937) 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 (501) WHERE g.cat_id IN (146) AND g.brand_id IN (937) 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 (501) WHERE dc.dop_cat_id IN (146) AND g.brand_id IN (937) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0020480155944824 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab023e0595; CREATE TEMPORARY TABLE tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab023e0595 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY [0.00026321411132812 sec]
INSERT INTO tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab023e0595 (goods_id, filter_id) SELECT DISTINCT A.entry AS goods_id, f.id AS filter_id FROM tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab023e0595 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.0025138854980469 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab023e0595; CREATE TEMPORARY TABLE tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab023e0595 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY [0.0005791187286377 sec]
INSERT INTO tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab023e0595 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab023e0595 p GROUP BY p.filter_id [0.00035786628723145 sec]
INSERT INTO tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab023e0595 (filter_id, count) SELECT pf.id, 0 FROM pod_filter pf LEFT JOIN tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab023e0595 c ON c.filter_id = pf.id WHERE pf.id in (265,362) AND c.filter_id IS NULL [0.00049114227294922 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_6a2ab023e0595 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.00041794776916504 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab023e0595 [0.00037908554077148 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab023e0595 [0.00017094612121582 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab023e0595 [0.00014710426330566 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab023e2d4e; CREATE TEMPORARY TABLE tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab023e2d4e ( id INT NOT NULL, PRIMARY KEY (id) ) ENGINE=MEMORY; [0.00028395652770996 sec]
INSERT INTO tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab023e2d4e (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 (265,362) WHERE g.cat_id IN (146) AND g.brand_id IN (937) 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 (265,362) WHERE dc.dop_cat_id IN (146) AND g.brand_id IN (937) 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 (265,362) WHERE g.cat_id IN (146) AND g.brand_id IN (937) 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 (265,362) WHERE dc.dop_cat_id IN (146) AND g.brand_id IN (937) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0047190189361572 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab023e2d4e; CREATE TEMPORARY TABLE tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab023e2d4e ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00062394142150879 sec]
INSERT INTO tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab023e2d4e (goods_id, filter_id) SELECT DISTINCT A.id AS goods_id, f.id AS filter_id FROM tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab023e2d4e A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id = 499 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.0015411376953125 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab023e2d4e; CREATE TEMPORARY TABLE tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab023e2d4e ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00036406517028809 sec]
INSERT INTO tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab023e2d4e (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab023e2d4e p GROUP BY p.filter_id [0.00028491020202637 sec]
INSERT IGNORE INTO tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab023e2d4e (filter_id, count) SELECT pf.id, 0 FROM pod_filter pf LEFT JOIN tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab023e2d4e c ON c.filter_id = pf.id WHERE pf.id in (501) AND c.filter_id IS NULL [0.00034308433532715 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_6a2ab023e2d4e 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.00032591819763184 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab023e2d4e [0.00026202201843262 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_j48se20n1sjv8u0ouco0od38sl_6a2ab023e2d4e [0.00013303756713867 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab023e2d4e [0.0001530647277832 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab023e56ea; CREATE TEMPORARY TABLE tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab023e56ea ( entry INT NOT NULL, sub_icon_id INT NOT NULL, PRIMARY KEY (entry, sub_icon_id) ) ENGINE=MEMORY; [0.00028586387634277 sec]
INSERT IGNORE INTO tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab023e56ea (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 (265,362) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (501) WHERE g.cat_id IN (146) AND g.brand_id IN (937) 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 (265,362) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (501) WHERE dc.dop_cat_id IN (146) AND g.brand_id IN (937) 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 (265,362) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (501) WHERE g.cat_id IN (146) AND g.brand_id IN (937) 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 (265,362) INNER JOIN pod_good_filter gf1 ON g.id = gf1.id_good AND gf1.filter_id_value in (501) WHERE dc.dop_cat_id IN (146) AND g.brand_id IN (937) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.004188060760498 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab023e56ea; CREATE TEMPORARY TABLE tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab023e56ea ( sub_icon_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00040888786315918 sec]
INSERT IGNORE INTO tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab023e56ea (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_6a2ab023e56ea 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.00040602684020996 sec]
SELECT c.sub_icon_id AS id, c.count, si.entry, si.name_ua AS name, si.url FROM tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab023e56ea 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.00027704238891602 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_j48se20n1sjv8u0ouco0od38sl_6a2ab023e56ea [0.00025010108947754 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_j48se20n1sjv8u0ouco0od38sl_6a2ab023e56ea [0.00011515617370605 sec]
Низькі ціни на Розвиваючі іграшки Trefl (Tрeфл) - великий вибір, фото. Купити Розвиваючі іграшки Trefl (Tрeфл) в Києві і Україні

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

ПЕРЕЙТИ

Розвиваючі іграшки Trefl