Galeria produktów

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 DESC' at line 1
Zapytanie: SELECT DISTINCT, FROM gallery_desc,gallery,gallery_foto,foto WHERE AND AND AND lang=1 AND id_page= ORDER BY gallery.sort DESC