Špatný dotaz: Unknown column 'letni' in 'where clause'
SELECT id,nazev,poradi,text,zkracene,url,id_kategorie,kod,datum,datum_zobrazovat FROM prispevek WHERE zobrazovat="A" AND (id_kategorie in(31-letni-skola-vscht-pro-stredoskolske-pedagogy-a-zaky-strednich-skol) or exists(select * from prispevek_kategorie pk where pk.id_prispevek = prispevek.id and pk.id_kategorie in (31-letni-skola-vscht-pro-stredoskolske-pedagogy-a-zaky-strednich-skol))) order by datum DESC ,id DESC