[Solved] Code to check for duplicates in database and only displaying the newest on repeater (based on updated date)

This sounds interesting, but I´m not sure if it fits to my goal explained below.
In my case a lot of fields wouldn´t be unique, only the date would be different. Thanks