Chyba v SQL dotazu: SELECT s.idz, s.nazev, s.typ, s.nadrazen FROM beru_partneri_sluzby s INNER JOIN beru_partneri_terminy t ON s.idz=t.krouzek WHERE 1=1 AND t.ukaz=1 AND typ=15 AND s.ukaz=1 and nadrazen<>0 group by s.idz order by s.nadrazen DESC, poradi ASC Column 'poradi' in order clause is ambiguous