SELECT url_to, r404 FROM pod_redirect WHERE BINARY REPLACE(url_from,'/ru/','/') = '/kastryuli/mpot_7l-biol-lessner-risoli-flonal-iq.html' LIMIT 0,1 [0.00024104118347168 sec]
SELECT pod_filter.id,pod_filter.url FROM pod_filter WHERE BINARY pod_filter.url IN ('mpot_7l','biol','lessner','risoli','flonal','iq') order by url [0.00074911117553711 sec]
SELECT pod_sub_icon.id,pod_sub_icon.url FROM pod_sub_icon WHERE BINARY pod_sub_icon.url IN ('mpot_7l','biol','lessner','risoli','flonal','iq') order by url [0.00051403045654297 sec]
select id,url from pod_cat_brand where BINARY url IN ('mpot_7l','biol','lessner','risoli','flonal','iq') [0.0010390281677246 sec]
SELECT id, url FROM pod_filter WHERE url IN ('mpot_7l','biol','lessner','risoli','flonal','iq') [0.00042104721069336 sec]
SELECT id, url FROM pod_sub_icon WHERE url IN ('mpot_7l','biol','lessner','risoli','flonal','iq') [0.0004429817199707 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 (105) WHERE g.cat_id IN (115) AND g.brand_id IN (319,334,2445,2552,2500) 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 (105) WHERE dc.dop_cat_id IN (115) AND g.brand_id IN (319,334,2445,2552,2500) 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 (105) WHERE g.cat_id IN (115) AND g.brand_id IN (319,334,2445,2552,2500) 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 (105) WHERE dc.dop_cat_id IN (115) AND g.brand_id IN (319,334,2445,2552,2500) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active [0.031581163406372 sec]
CREATE TEMPORARY TABLE temp_brand_counts_6a2a7c23ce05d ( id INT, gid INT, INDEX idx_id (id), INDEX idx_gid (gid) ) [0.0013759136199951 sec]
INSERT INTO temp_brand_counts_6a2a7c23ce05d (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 (105) WHERE g.cat_id IN (115) 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 (105) WHERE dc.dop_cat_id IN (115) 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 (105) WHERE g.cat_id IN (115) 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 (105) WHERE dc.dop_cat_id IN (115) 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 (319,334,2445,2552,2500) [0.0018739700317383 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_6a2a7c23ce05d 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.00043916702270508 sec]
DROP TEMPORARY TABLE IF EXISTS temp_brand_counts_6a2a7c23ce05d [0.00010085105895996 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 (105) WHERE g.cat_id IN (115) AND g.brand_id IN (319,334,2445,2552,2500) 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 (105) WHERE dc.dop_cat_id IN (115) AND g.brand_id IN (319,334,2445,2552,2500) 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 (105) WHERE g.cat_id IN (115) AND g.brand_id IN (319,334,2445,2552,2500) 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 (105) WHERE dc.dop_cat_id IN (115) AND g.brand_id IN (319,334,2445,2552,2500) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0021488666534424 sec]
SELECT name_ua AS name, url FROM pod_cat_brand WHERE id in (319,334,2445,2552,2500) [0.00016903877258301 sec]
SELECT name_ua AS name, url FROM pod_cat_brand WHERE id='319.334.2445.2552.2500' [0.00014495849609375 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c23d1332; CREATE TEMPORARY TABLE tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c23d1332 ( id INT NOT NULL, PRIMARY KEY (id) ) ENGINE=MEMORY; [0.00021100044250488 sec]
INSERT INTO tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c23d1332 (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 (105) WHERE g.cat_id IN (115) AND g.brand_id IN (319,334,2445,2552,2500) 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 (105) WHERE dc.dop_cat_id IN (115) AND g.brand_id IN (319,334,2445,2552,2500) 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 (105) WHERE g.cat_id IN (115) AND g.brand_id IN (319,334,2445,2552,2500) 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 (105) WHERE dc.dop_cat_id IN (115) AND g.brand_id IN (319,334,2445,2552,2500) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0011229515075684 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_cror8ioce3mg54p6m826oo6v6t_6a2a7c23d1332; CREATE TEMPORARY TABLE tmp_pairs_cror8ioce3mg54p6m826oo6v6t_6a2a7c23d1332 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00016403198242188 sec]
INSERT INTO tmp_pairs_cror8ioce3mg54p6m826oo6v6t_6a2a7c23d1332 (goods_id, filter_id) SELECT DISTINCT A.id AS goods_id, f.id AS filter_id FROM tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c23d1332 A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id_value NOT IN (105) INNER JOIN pod_cat_filter cf ON gf.filter_id = cf.filter_id AND cf.category_id = 115 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.0044150352478027 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c23d1332; CREATE TEMPORARY TABLE tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c23d1332 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00020813941955566 sec]
INSERT IGNORE INTO tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c23d1332 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_cror8ioce3mg54p6m826oo6v6t_6a2a7c23d1332 p GROUP BY p.filter_id [0.00021195411682129 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_cror8ioce3mg54p6m826oo6v6t_6a2a7c23d1332 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.00022792816162109 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c23d1332 [0.0001370906829834 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_cror8ioce3mg54p6m826oo6v6t_6a2a7c23d1332 [7.2956085205078E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c23d1332 [7.2002410888672E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c23d30f8; CREATE TEMPORARY TABLE tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c23d30f8 ( id INT NOT NULL, entry INT NOT NULL, PRIMARY KEY (id), KEY idx_entry (entry) ) ENGINE=MEMORY; [0.00011491775512695 sec]
INSERT INTO tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c23d30f8 (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 (105) WHERE g.cat_id IN (115) AND g.brand_id IN (319,334,2445,2552,2500) 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 (105) WHERE dc.dop_cat_id IN (115) AND g.brand_id IN (319,334,2445,2552,2500) 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 (105) WHERE g.cat_id IN (115) AND g.brand_id IN (319,334,2445,2552,2500) 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 (105) WHERE dc.dop_cat_id IN (115) AND g.brand_id IN (319,334,2445,2552,2500) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0010530948638916 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_cror8ioce3mg54p6m826oo6v6t_6a2a7c23d30f8; CREATE TEMPORARY TABLE tmp_pairs_cror8ioce3mg54p6m826oo6v6t_6a2a7c23d30f8 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY; [0.00016498565673828 sec]
INSERT INTO tmp_pairs_cror8ioce3mg54p6m826oo6v6t_6a2a7c23d30f8 (goods_id, filter_id) SELECT DISTINCT A.entry AS goods_id, f.id AS filter_id FROM tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c23d30f8 A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id_value NOT IN (105) INNER JOIN pod_cat_filter cf ON gf.filter_id = cf.filter_id AND cf.category_id = 115 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.00036287307739258 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c23d30f8; CREATE TEMPORARY TABLE tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c23d30f8 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00016283988952637 sec]
INSERT IGNORE INTO tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c23d30f8 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_cror8ioce3mg54p6m826oo6v6t_6a2a7c23d30f8 p GROUP BY p.filter_id [0.00015592575073242 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_cror8ioce3mg54p6m826oo6v6t_6a2a7c23d30f8 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.00015997886657715 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c23d30f8 [0.00011301040649414 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_cror8ioce3mg54p6m826oo6v6t_6a2a7c23d30f8 [5.6028366088867E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c23d30f8 [5.3167343139648E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c23d3d00; CREATE TEMPORARY TABLE tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c23d3d00 ( id INT NOT NULL, entry INT NOT NULL, PRIMARY KEY (id), KEY idx_entry (entry) ) ENGINE=MEMORY [0.00011396408081055 sec]
INSERT INTO tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c23d3d00 (id, entry) SELECT A.id, A.entry FROM ( SELECT g.id as id, g.id as entry -- основні FROM pod_cat_good g USE INDEX (idx_cat_entry_active_present) WHERE g.cat_id IN (115) AND g.brand_id IN (319,334,2445,2552,2500) 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 WHERE dc.dop_cat_id IN (115) AND g.brand_id IN (319,334,2445,2552,2500) 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 WHERE g.cat_id IN (115) AND g.brand_id IN (319,334,2445,2552,2500) 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 WHERE dc.dop_cat_id IN (115) AND g.brand_id IN (319,334,2445,2552,2500) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.060095071792603 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_cror8ioce3mg54p6m826oo6v6t_6a2a7c23d3d00; CREATE TEMPORARY TABLE tmp_pairs_cror8ioce3mg54p6m826oo6v6t_6a2a7c23d3d00 ( goods_id INT NOT NULL, filter_id INT NOT NULL, PRIMARY KEY (goods_id, filter_id) ) ENGINE=MEMORY [0.00027322769165039 sec]
INSERT INTO tmp_pairs_cror8ioce3mg54p6m826oo6v6t_6a2a7c23d3d00 (goods_id, filter_id) SELECT DISTINCT A.entry AS goods_id, f.id AS filter_id FROM tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c23d3d00 A INNER JOIN pod_good_filter gf ON A.id = gf.id_good AND gf.filter_id = 99 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.0080478191375732 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c23d3d00; CREATE TEMPORARY TABLE tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c23d3d00 ( filter_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY [0.00020694732666016 sec]
INSERT INTO tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c23d3d00 (filter_id, count) SELECT p.filter_id, COUNT(*) AS count FROM tmp_pairs_cror8ioce3mg54p6m826oo6v6t_6a2a7c23d3d00 p GROUP BY p.filter_id [0.00018906593322754 sec]
INSERT INTO tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c23d3d00 (filter_id, count) SELECT pf.id, 0 FROM pod_filter pf LEFT JOIN tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c23d3d00 c ON c.filter_id = pf.id WHERE pf.id in (105) AND c.filter_id IS NULL [0.00011610984802246 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_cror8ioce3mg54p6m826oo6v6t_6a2a7c23d3d00 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_cror8ioce3mg54p6m826oo6v6t_6a2a7c23d3d00 [0.00018191337585449 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_pairs_cror8ioce3mg54p6m826oo6v6t_6a2a7c23d3d00 [6.4849853515625E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c23d3d00 [6.3896179199219E-5 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c23e5049; CREATE TEMPORARY TABLE tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c23e5049 ( entry INT NOT NULL, sub_icon_id INT NOT NULL, PRIMARY KEY (entry, sub_icon_id) ) ENGINE=MEMORY; [0.00012993812561035 sec]
INSERT IGNORE INTO tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c23e5049 (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 (105) WHERE g.cat_id IN (115) AND g.brand_id IN (319,334,2445,2552,2500) 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 (105) WHERE dc.dop_cat_id IN (115) AND g.brand_id IN (319,334,2445,2552,2500) 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 (105) WHERE g.cat_id IN (115) AND g.brand_id IN (319,334,2445,2552,2500) 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 (105) WHERE dc.dop_cat_id IN (115) AND g.brand_id IN (319,334,2445,2552,2500) AND go.is_present AND go.is_active AND g.is_present_all_mods AND g.is_active ) A [0.0012800693511963 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c23e5049; CREATE TEMPORARY TABLE tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c23e5049 ( sub_icon_id INT NOT NULL PRIMARY KEY, count INT NOT NULL ) ENGINE=MEMORY; [0.00018000602722168 sec]
INSERT IGNORE INTO tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c23e5049 (sub_icon_id, count) SELECT sub_icon_id, COUNT(DISTINCT entry) AS count FROM ( SELECT A.entry, A.sub_icon_id FROM tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c23e5049 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.00017499923706055 sec]
SELECT c.sub_icon_id AS id, c.count, si.entry, si.name_ua AS name, si.url FROM tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c23e5049 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.00011110305786133 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_A_cror8ioce3mg54p6m826oo6v6t_6a2a7c23e5049 [0.00021004676818848 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_counts_cror8ioce3mg54p6m826oo6v6t_6a2a7c23e5049 [6.9141387939453E-5 sec]
Низькі ціни на Каструлі БІОЛ ... IQ (БІOЛ ... ІQ) - великий вибір, фото. Купити Каструлі БІОЛ ... IQ (БІOЛ ... ІQ) в Києві і Україні

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

ПЕРЕЙТИ

Каструлі БІОЛ ... IQ