SELECT player.*, player_iplog.*
FROM player
LEFT JOIN player_iplog ON player.SteamID=player_iplog.SteamID
WHERE player.Rank = 'superadmin'
I have the above query in a PHP script that displays a player's statistics from a MySQL database. Everything works okay, however, some players have duplicate entries
I cannot remove the duplicate entries, as it is a feature and not a bug.
Is there any way this query could be modified to only return each user once?
I have this hooked up with a while ( $res->fetch-array() ) {}
loop, so it displays every user's entry multiple times.
Also, I have tried DISTINCT
to no avail.