Špatný dotaz: 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 '{item.id_kategorie}}) and kf.prirazen="A" and k.zobrazovat = "A" order by sk.por' at line 1
select distinct sk.poradi,flt.id,cf.id as id_filtr,flt.nazev,flt.id_skupina,sk.nazev as skupina from (filtr flt,katalog_filtr kf) left join katalog k on k.id = kf.id_katalog left join skupina sk on sk.id = flt.id_skupina left join cc_filtr cf on cf.nazev = flt.nazev where flt.id = kf.id_filtr and flt.id_kategorie in({{item.id_kategorie}}) and kf.prirazen="A" and k.zobrazovat = "A" order by sk.poradi,flt.id_skupina,flt.poradi,flt.nazev