La query che ti ho scritto io era ovviamente diversa. Se includi altri campi ottieni quell'errore. Se ti servono tutti i campi prova così
codice:select tb1.* from tabella as tb1 inner join ( select cf,max(data) as recente from tabella group by cf) as tb2 on tb1.cf = tb2.cf and tb1.data = tb2.recente