x
SELECT S.Putanja FROM `gemi_oglas_slika` OS, gemi_slika S WHERE OS.SlikaID=S.id AND S.MalaSlika='0' AND S.SlajdSlika='0' AND OS.OglasID= ORDER BY Redosled; 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 'ORDER BY Redosled' at line 1