Forum Moderators: coopster
This is what I have (slimmed down obviously)
$query = "SELECT stats.teamid, stats.playerid, firstname, lastname, teamname, COUNT(mins) AS gp
FROM players, stats, teams
WHERE teams.teamid = stats.teamid AND players.playerid = stats.playerid AND season = $season
GROUP BY stats.playerid
ORDER BY gaa ASC
LIMIT 0,5";
what I tried to do was add "gp > 3" to the WHERE statement. That's when I get the Unkown column error.
I could do this with an array but rather then reinventing the wheel I'd like to simply add the extra criteria into the query.