Sorry if title is confusing, I have a table that stores a player and how long it took them to complete the map in seconds, I am trying to write a query that selects all the maps that a specific player has the fastest/shortest time
I tried this query:
SELECT * 
  FROM ck_playertimes a 
  JOIN 
     ( SELECT MIN(runtimepro) runtimepro 
         FROM ck_playertimes 
        WHERE style = 0 
        group 
           by mapname
     ) b 
    ON a.runtimepro = b.runtimepro 
 WHERE steamid = 'STEAM_1:0:20019070' 
   AND style = '0'
However it is selecting some times that are not the shortest/fastest for a specific map and there's even a duplicate somehow when that duplicate does not exist in the table
Any help? =)
 
     
     
    