The pure query (sql) below, I only return one row of the table, it happens that I'm working with two tables (Process and Progress) and tempo is the primary key of Process.
select fkcodprocesso, dtandamento, descricao from andamento
order by str_to_date(dtandamento, '%d-%m-%Y') desc limit 1;