Nao deu para executar o query SELECT DISTINCT(Tipo), Tipo_descr FROM Fotos ORDER BY Data DESC pq Expression #1 of ORDER BY clause is not in SELECT list, references column 'schiu_v2.Fotos.Data' which is not in SELECT list; this is incompatible with DISTINCT