Squads: Fixed issue #17, had bad SQL query