select id from pod_structure where link='catalogue/scat/12' and active='1' AND lang_ru='1' [0.00038790702819824 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_base_goods; CREATE TEMPORARY TABLE tmp_base_goods ( id INT NOT NULL PRIMARY KEY, brand_id INT, price DECIMAL(10,2), old_price DECIMAL(10,2), ordr INT, is_present TINYINT(1), sub_icon_id INT, fast_delivery TINYINT(1), is_new TINYINT(1), is_sale TINYINT(1), KEY idx_brand (brand_id) ) ENGINE=MEMORY [0.00037193298339844 sec]
INSERT INTO tmp_base_goods (id, brand_id, price, old_price, ordr, is_present, sub_icon_id, fast_delivery, is_new, is_sale) SELECT g.id, g.brand_id, g.price, g.old_price, g.ordr, g.is_present, g.sub_icon_id, g.fast_delivery, g.is_new, g.is_sale FROM pod_cat_good g WHERE g.cat_id IN (2251,2196,2347,2909,3070,2894,1027,1029,918,927,981,934,931,937,939,943,1087,953,954,959,960,961,911,912,913,914,915,916,979,989,962,972,951,974,975,946,949,1024,1036,1046,1272,1407,2121,2109,2111,2171,2209,4425,4576,1020,4600) AND g.entry=0 AND g.is_active AND g.is_present_all_mods UNION SELECT g.id, g.brand_id, g.price, g.old_price, g.ordr, g.is_present, g.sub_icon_id, g.fast_delivery, g.is_new, g.is_sale FROM pod_cat_good g INNER JOIN pod_dop_cat_category dc ON dc.good_id = g.id WHERE dc.dop_cat_id IN (2251,2196,2347,2909,3070,2894,1027,1029,918,927,981,934,931,937,939,943,1087,953,954,959,960,961,911,912,913,914,915,916,979,989,962,972,951,974,975,946,949,1024,1036,1046,1272,1407,2121,2109,2111,2171,2209,4425,4576,1020,4600) AND g.entry=0 AND g.is_active AND g.is_present_all_mods [0.24021005630493 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_sub_goods; CREATE TEMPORARY TABLE tmp_sub_goods ( id INT NOT NULL PRIMARY KEY, entry INT NOT NULL, price DECIMAL(10,2), old_price DECIMAL(10,2), sub_icon_id INT, is_present TINYINT(1), fast_delivery TINYINT(1), is_new TINYINT(1), is_sale TINYINT(1), KEY idx_entry (entry) ) ENGINE=MEMORY [0.00034904479980469 sec]
INSERT INTO tmp_sub_goods (id, entry, price, old_price, sub_icon_id, is_present, fast_delivery, is_new, is_sale) SELECT go.id, go.entry, go.price, go.old_price, go.sub_icon_id, go.is_present, go.fast_delivery, go.is_new, go.is_sale FROM pod_cat_good go INNER JOIN tmp_base_goods t ON go.entry = t.id WHERE go.is_active AND go.is_present [0.012749910354614 sec]
CREATE TEMPORARY TABLE temp_brand_counts_6a2addc473fea ( id INT, gid INT, INDEX idx_id (id), INDEX idx_gid (gid) ) [0.001471996307373 sec]
INSERT INTO temp_brand_counts_6a2addc473fea (id, gid) SELECT g.brand_id AS id, g.id AS gid -- основні (tmp) FROM tmp_base_goods g WHERE 1 [0.014120817184448 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_6a2addc473fea 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.0022799968719482 sec]
DROP TEMPORARY TABLE IF EXISTS temp_brand_counts_6a2addc473fea [0.00032711029052734 sec]
SELECT id, name AS name, url, entry FROM pod_cat_category WHERE is_active='1' AND is_hidden='0' AND entry='0' AND super_category_id='12' AND id!='s12' ORDER BY ordr [0.00084209442138672 sec]
SELECT id, name AS name, url, entry FROM pod_cat_category WHERE is_active='1' AND is_hidden='0' AND entry IN (1020,1272,1024,1027,1029,1087,1046,1036,915,972,974,975,979,959,960,953,961,962,954,951,989,912,931,934,981,927,918,916,914,913,911,937,939,949,946,943,2109,2111,2121,2171,2196,2209,2251,2347,2909,2894,3070,4425,4576,4600) ORDER BY ordr [0.0010240077972412 sec]
SELECT id, name AS name, image, link FROM pod_cat_dop_links WHERE category_id = '0' AND active = 1 ORDER BY sort_order ASC, name ASC [0.00089597702026367 sec]
DROP TEMPORARY TABLE IF EXISTS tmp_base_goods; DROP TEMPORARY TABLE IF EXISTS tmp_sub_goods [0.00042891502380371 sec]
Новинки! Новинки купить в Украине и Киеве по лучшей цене - интернет-магазин Podushka.com.ua | Страница 64

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

ПЕРЕЙТИ

Новинки