SELECT *,CASE WHEN k.idKategoriaL=1 THEN 's64.png' WHEN k.idKategoriaL=2 THEN 'g64.png' WHEN k.idKategoriaL=3 THEN 'p64.png' END as ikona FROM klienci k LEFT JOIN adresy a ON a.idKlient=k.idKlient LEFT JOIN kontakty o ON o.idKlient=k.idKlient LEFT JOIN kategorieleader l ON k.idKategoriaL=l.idKategoriaL WHERE lat>0 AND lng>0 and idAdres= Marker Clustering