when `cena` < 1000 then '0 - 1000' when `cena` >= 2000 and `cena` < 3000 then "2000 - 3000" when `cena` >= 3000 and `cena` < 4000 then "3000 - 4000" as `range` from `produkty`
no i mam blad:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'as `range` from `produkty`'. Nie moge dojsc czemu tam jest blad ...