Query Error:
SELECT api_leagues.`league_id` FROM api_leagues WHERE api_leagues.`T`=0 LIMIT 1;