Ok, I think I managed to do it, but it's not really what I wanted it to do, because it only shows one record with the latest date, is there any chance to show all the records, but if for example we have 2 records with the same id, to show only one of them, the one which has the latest date?