I have this sql query, which is wrong. I want to update the field "prevmonth" in the wins table, but only for the record that has the max value for the field "month_wins".
UPDATE wins
SET prevmonth_top=1
WHERE month_wins = (SELECT MAX(month_wins) FROM wins)
But how can i do this?