I have a table as follows:

In the future the table will have several more rows.
I am trying to select currentStage from the database using the following code:
$currentStage = mysql_query("
SELECT `currentStage` FROM `team` WHERE `gameID` = '$gameID'
");
Using the above selects the two 1's from the data base however I really just want to select one of them. With only the gameID as a reference. (ie. I can only use WHEREgameID= '$gameID' as a method of finding) Is there a way of doing this?
I hope this makes sense
Thanks
You can use
LIMIT 1to fetch only one row from the result set:Alternatively you can use MIN or MAX to find the minimum or maximum value: