1064: 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 Data DESC, ORDEM ASC, CodAlbumImagem Desc' at line 4
SQL: SELECT *, AlbumImagem.Nome as iNome, Album.Nome as aNome FROM AlbumImagem
INNER JOIN Album ON Album.CodAlbum = AlbumImagem.CodAlbum
WHERE Album.CodEdicao =
ORDER BY Data DESC, ORDEM ASC, CodAlbumImagem Desc