Този сайт използва "бисквитки" (coockies). Разбрах
SELECT DISTINCT prods.id, prods.aver, prods.title_0, prods.title_0, prods.is_promo, prods.is_action, prods.is_razpr, prods.is_new, prods.catnom, (SELECT orderby FROM cats WHERE id=(SELECT cat_id FROM prod_cat WHERE prod_id=prods.`id` ORDER BY cat_id DESC LIMIT 1)) order_cat, (select count(prod_cat.id) from prod_cat where prod_id=prods.id and cat_id=109) is_kant, (select min(price) from prod_items where prod_id=prods.id) price, (select min(promo) from prod_items where prod_id=prods.id and promo is not null and promo > 0) promo, (select count(id) from prod_items where prod_id=prods.id and istatus in (2, 3, 4, 5)) promo_cnt, (SELECT name_0 FROM vals WHERE id=producer_id ) producername, producer_id FROM prods LEFT JOIN prod_cat ON prod_cat.prod_id=prods.id LEFT JOIN prod_vals ON prod_vals.prod_id=prods.id LEFT JOIN vals ON vals.id=prod_vals.val_id where prods.is_hidden=0 and not exists(select id from prod_cat where prod_id=prods.id and exists(select id from cats where id=prod_cat.cat_id and is_hidden=1)) and (( ( (catnom like "%МДФ%") or (title_0 like "%МДФ%") or (shortdescr_0 like "%МДФ%") or (kw_0 like "%МДФ%") or (descr_0 like "%МДФ%") ) and ( (catnom like "%Рубик%") or (title_0 like "%Рубик%") or (shortdescr_0 like "%Рубик%") or (kw_0 like "%Рубик%") or (descr_0 like "%Рубик%") ) ) or ( ( (catnom like "%мдф%") or (title_0 like "%мдф%") or (shortdescr_0 like "%мдф%") or (kw_0 like "%мдф%") or (descr_0 like "%мдф%") ) and ( (catnom like "%рубик%") or (title_0 like "%рубик%") or (shortdescr_0 like "%рубик%") or (kw_0 like "%рубик%") or (descr_0 like "%рубик%") ) ) or ( ( (catnom like "%mdf%") or (title_0 like "%mdf%") or (shortdescr_0 like "%mdf%") or (kw_0 like "%mdf%") or (descr_0 like "%mdf%") ) and ( (catnom like "%rubik%") or (title_0 like "%rubik%") or (shortdescr_0 like "%rubik%") or (kw_0 like "%rubik%") or (descr_0 like "%rubik%") ) )) ORDER BY order_cat, prod_cat.cat_id, prods.orderby, prods.aver, id DESC limit 0, 60
« КАТЕГОРИИ

Резултати за "МДФ Рубик" - 3 артикула

Назад