Błąd: 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 gallery.sort ASC' at line 1
Zapytanie: SELECT DISTINCT gallery_desc.name, gallery.id FROM gallery_desc,gallery,gallery_foto,foto WHERE gallery_desc.id_gallery=gallery.id AND gallery.id=gallery_foto.id_gallery AND gallery_foto.id_foto=foto.id AND lang=1 AND id_page= ORDER BY gallery.sort ASC