Š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}} or katOst.id = {{item.id_kategorie}})' at line 1
select k.id from katalog k join kategorie kat on kat.id = k.id_kategorie and kat.zobrazovat = "A" left join katalog_kategorie kkat on kkat.id_katalog = k.id left join kategorie katOst on katOst.id = kkat.id_kategorie and katOst.zobrazovat="A" left join oblast obl on obl.id = k.id_oblast WHERE k.zobrazovat = "A" and k.zobrazovat_samostatne = "A" and (kat.id = {{item.id_kategorie}} or katOst.id = {{item.id_kategorie}})