Fixed mysql query in game view