Fix query for next planned game for team