LEFT JOIN `stale_cechy_prod` ON stale_cechy_prod.prod_id = produkty.id LEFT JOIN `stale_cechy_opcje` ON stale_cechy_opcje.id = stale_cechy_prod.cecha_id LEFT JOIN `meta_tagi` ON meta_tagi.id_prod = produkty.id WHERE (( ( concat(nazwa, "_") LIKE "%thule_%" ) OR (produkty.id = 'thule') OR (produkty.ean = 'thule') OR (produkty.indeks LIKE '%thule%') ) ) AND aktywny="1" AND prod_kat NOT IN (250,294,175,171,172,185,187,176,177,174,173,220,193,210,178,180,278,277,241,254,289,208,199,170,222,339,340,337,338,335,336,298,334,329,330,332,333,331,328,309,300,301,302,303,304,305,306,307,308,296,194,204,240,235,229,326,327,325,247,201,219,203,231,209,228,258,227,268,216,200,238,223,205,197,206,202,207,212,211,317,318,319,320,310,311,312,313,314,315,316,321,297,284,282,283,275,322,323,324,299,274,217,183,182,181,184,186,191,213,221,192,179,196,273,195,246,169) AND (1=1) AND 1=1
Wyszukiwarka