I have a table whose structure is as follows:
id int userid int status enum (\'pending\',\'approved\') dop datetime
Data is as:
Maybe adding DISTINCT() on userid?