General view to get the whole row from the aggregated value:
SELECT * FROM Races WHERE TotalCP = (SELECT MIN(TotalCP) FROM Races)
or
SELECT r.* FROM ( SELECT MIN(TotalCP) t FROM Races ) m INNER JOIN Races r ON mt = r.TotalCP
However, in this case, since you are using MIN , you can just sort and take the first line:
SELECT * FROM Races ORDER BY TotalCP LIMIT 1
source share