<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="/wp-content/plugins/wordpress-seo/css/main-sitemap.xsl"?><urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd http://www.google.com/schemas/sitemap-image/1.1 http://www.google.com/schemas/sitemap-image/1.1/sitemap-image.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (194, 197) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (194, 197) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2932, 2938) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2932, 2938) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (388, 394) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (388, 394) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (54, 37) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (54, 37) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (54, 1837) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (54, 1837) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (327, 329) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (327, 329) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (158, 175) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (158, 175) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (158, 192) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (158, 192) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (572, 550) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (572, 550) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (611, 645) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (611, 645) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (375, 363) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (375, 363) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (573, 598) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (573, 598) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (4665, 539) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (4665, 539) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (331, 327) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (331, 327) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (488, 515) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (488, 515) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (174, 192) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (174, 192) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (609, 4346) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (609, 4346) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (228, 212) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (228, 212) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (278, 276) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (278, 276) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1358, 54) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1358, 54) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (209, 194) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (209, 194) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (211, 212) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (211, 212) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (489, 492) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (489, 492) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (489, 494) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (489, 494) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (489, 503) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (489, 503) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (489, 517) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (489, 517) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (489, 867) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (489, 867) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (542, 529) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (542, 529) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (542, 534) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (542, 534) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (542, 536) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (542, 536) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (542, 543) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (542, 543) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (542, 720) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (542, 720) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (542, 798) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (542, 798) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (77, 83) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (77, 83) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (77, 84) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (77, 84) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (77, 85) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (77, 85) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (77, 116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (77, 116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (77, 1063) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (77, 1063) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (42, 39) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (42, 39) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (42, 40) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (42, 40) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (42, 41) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (42, 41) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (42, 46) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (42, 46) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (42, 51) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (42, 51) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (497, 494) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (497, 494) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (497, 500) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (497, 500) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (497, 503) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (497, 503) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (497, 505) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (497, 505) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (497, 511) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (497, 511) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (497, 517) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (497, 517) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (66, 33) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (66, 33) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (66, 35) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (66, 35) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (66, 39) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (66, 39) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (66, 42) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (66, 42) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (66, 45) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (66, 45) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (499, 494) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (499, 494) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (499, 495) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (499, 495) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (499, 502) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (499, 502) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (499, 504) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (499, 504) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (499, 895) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (499, 895) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (499, 1579) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (499, 1579) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (531, 530) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (531, 530) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (531, 532) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (531, 532) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (531, 536) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (531, 536) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (531, 538) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (531, 538) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (531, 540) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (531, 540) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (531, 543) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (531, 543) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (531, 546) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (531, 546) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (530, 532) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (530, 532) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (530, 534) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (530, 534) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (530, 537) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (530, 537) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (530, 540) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (530, 540) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (530, 547) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (530, 547) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (170, 162) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (170, 162) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (170, 163) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (170, 163) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (170, 164) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (170, 164) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (170, 165) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (170, 165) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (170, 167) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (170, 167) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (170, 186) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (170, 186) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (108, 84) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (108, 84) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (108, 91) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (108, 91) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (108, 93) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (108, 93) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (108, 94) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (108, 94) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (108, 106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (108, 106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (163, 162) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (163, 162) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (163, 168) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (163, 168) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (163, 172) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (163, 172) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (163, 180) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (163, 180) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (163, 182) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (163, 182) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (529, 531) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (529, 531) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (529, 536) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (529, 536) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (529, 540) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (529, 540) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (529, 546) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (529, 546) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (529, 720) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (529, 720) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (157, 160) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (157, 160) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (157, 172) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (157, 172) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (157, 182) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (157, 182) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (543, 530) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (543, 530) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (543, 537) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (543, 537) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (543, 538) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (543, 538) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (543, 540) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (543, 540) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (543, 546) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (543, 546) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (543, 547) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (543, 547) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (543, 798) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (543, 798) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (176, 157) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (176, 157) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (176, 161) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (176, 161) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (176, 163) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (176, 163) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (176, 168) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (176, 168) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (176, 191) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (176, 191) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (500, 494) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (500, 494) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (500, 499) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (500, 499) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (500, 523) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (500, 523) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (500, 867) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (500, 867) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (165, 169) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (165, 169) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (165, 173) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (165, 173) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (165, 176) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (165, 176) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (165, 180) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (165, 180) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (165, 186) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (165, 186) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (35, 34) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (35, 34) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (35, 41) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (35, 41) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (35, 42) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (35, 42) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (35, 49) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (35, 49) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (55, 35) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (55, 35) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (55, 39) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (55, 39) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (55, 41) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (55, 41) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (55, 48) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (55, 48) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (55, 52) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (55, 52) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (55, 57) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (55, 57) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (106, 81) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (106, 81) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (106, 84) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (106, 84) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (106, 94) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (106, 94) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (106, 96) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (106, 96) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (106, 111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (106, 111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (106, 1063) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (106, 1063) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (51, 33) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (51, 33) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (51, 39) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (51, 39) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (51, 47) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (51, 47) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (51, 50) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (51, 50) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (51, 57) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (51, 57) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (490, 489) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (490, 489) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (490, 492) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (490, 492) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (490, 497) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (490, 497) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (490, 500) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (490, 500) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (490, 503) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (490, 503) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (490, 511) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (490, 511) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (490, 895) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (490, 895) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (538, 530) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (538, 530) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (538, 532) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (538, 532) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (538, 541) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (538, 541) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (538, 542) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (538, 542) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (538, 546) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (538, 546) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (538, 547) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (538, 547) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (538, 720) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (538, 720) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (49, 34) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (49, 34) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (49, 42) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (49, 42) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (49, 50) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (49, 50) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (49, 51) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (49, 51) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (49, 52) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (49, 52) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (49, 65) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (49, 65) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (895, 487) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (895, 487) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (895, 500) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (895, 500) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (895, 504) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (895, 504) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (895, 523) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (895, 523) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (350, 340) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (350, 340) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (350, 347) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (350, 347) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (350, 348) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (350, 348) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (350, 349) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (350, 349) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (350, 3484) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (350, 3484) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (350, 3493) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (350, 3493) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (350, 6962) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (350, 6962) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (350, 14562) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (350, 14562) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (52, 33) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (52, 33) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (52, 36) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (52, 36) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (52, 40) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (52, 40) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (52, 46) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (52, 46) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (52, 47) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (52, 47) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (52, 48) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (52, 48) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (169, 157) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (169, 157) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (169, 163) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (169, 163) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (169, 167) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (169, 167) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (169, 176) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (169, 176) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (511, 492) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (511, 492) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (511, 496) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (511, 496) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (511, 502) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (511, 502) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (511, 505) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (511, 505) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (511, 895) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (511, 895) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (511, 1579) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (511, 1579) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (540, 529) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (540, 529) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (540, 533) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (540, 533) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (540, 536) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (540, 536) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (540, 542) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (540, 542) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (540, 548) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (540, 548) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (540, 728) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (540, 728) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (540, 798) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (540, 798) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (45, 34) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (45, 34) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (45, 36) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (45, 36) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (45, 51) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (45, 51) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (45, 52) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (45, 52) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (502, 487) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (502, 487) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (502, 489) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (502, 489) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (502, 497) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (502, 497) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (502, 504) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (502, 504) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (502, 517) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (502, 517) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (502, 1579) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (502, 1579) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (36, 34) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (36, 34) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (36, 46) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (36, 46) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (36, 48) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (36, 48) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (36, 55) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (36, 55) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (36, 66) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (36, 66) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (495, 496) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (495, 496) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (495, 497) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (495, 497) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (495, 500) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (495, 500) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (495, 502) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (495, 502) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (495, 504) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (495, 504) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (495, 505) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (495, 505) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (495, 895) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (495, 895) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (546, 531) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (546, 531) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (546, 532) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (546, 532) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (546, 537) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (546, 537) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (546, 542) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (546, 542) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (546, 547) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (546, 547) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (546, 548) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (546, 548) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (546, 727) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (546, 727) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (546, 728) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (546, 728) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (547, 529) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (547, 529) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (547, 531) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (547, 531) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (547, 537) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (547, 537) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (547, 548) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (547, 548) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (547, 727) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (547, 727) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (547, 728) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (547, 728) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3484, 336) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3484, 336) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3484, 337) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3484, 337) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3484, 346) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3484, 346) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3484, 348) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3484, 348) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3484, 3491) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3484, 3491) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3484, 4248) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3484, 4248) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3484, 6962) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3484, 6962) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3484, 14562) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3484, 14562) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (340, 336) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (340, 336) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (340, 345) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (340, 345) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (340, 348) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (340, 348) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (340, 3484) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (340, 3484) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (340, 3491) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (340, 3491) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (340, 3493) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (340, 3493) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (180, 160) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (180, 160) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (180, 161) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (180, 161) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (180, 167) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (180, 167) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (180, 170) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (180, 170) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (180, 173) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (180, 173) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (167, 162) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (167, 162) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (167, 168) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (167, 168) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (167, 176) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (167, 176) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (167, 186) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (167, 186) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (167, 191) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (167, 191) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (505, 492) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (505, 492) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (505, 496) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (505, 496) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (505, 503) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (505, 503) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (505, 517) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (505, 517) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (505, 867) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (505, 867) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (57, 36) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (57, 36) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (57, 40) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (57, 40) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (57, 45) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (57, 45) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (57, 46) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (57, 46) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (57, 66) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (57, 66) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (336, 339) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (336, 339) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (336, 343) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (336, 343) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (336, 346) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (336, 346) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (336, 350) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (336, 350) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (336, 3490) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (336, 3490) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (336, 3491) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (336, 3491) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (336, 3493) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (336, 3493) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (496, 487) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (496, 487) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (496, 492) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (496, 492) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (496, 497) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (496, 497) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (496, 503) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (496, 503) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (496, 523) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (496, 523) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (496, 895) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (496, 895) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (191, 157) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (191, 157) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (191, 161) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (191, 161) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (191, 169) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (191, 169) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (191, 180) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (191, 180) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (191, 182) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (191, 182) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (346, 343) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (346, 343) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (346, 345) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (346, 345) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (346, 347) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (346, 347) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (346, 349) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (346, 349) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (346, 350) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (346, 350) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (346, 3493) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (346, 3493) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (534, 531) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (534, 531) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (534, 536) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (534, 536) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (534, 538) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (534, 538) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (534, 541) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (534, 541) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (534, 543) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (534, 543) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (534, 547) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (534, 547) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (487, 489) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (487, 489) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (487, 490) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (487, 490) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (487, 495) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (487, 495) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (487, 504) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (487, 504) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (487, 511) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (487, 511) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (487, 517) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (487, 517) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (111, 79) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (111, 79) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (111, 80) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (111, 80) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (111, 82) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (111, 82) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (111, 85) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (111, 85) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (111, 93) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (111, 93) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (111, 108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (111, 108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (867, 490) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (867, 490) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (867, 499) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (867, 499) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (867, 502) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (867, 502) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (867, 504) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (867, 504) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (867, 511) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (867, 511) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (867, 523) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (867, 523) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (347, 336) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (347, 336) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (347, 337) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (347, 337) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (347, 343) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (347, 343) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (347, 348) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (347, 348) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (347, 4248) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (347, 4248) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (347, 14562) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (347, 14562) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (343, 339) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (343, 339) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (343, 345) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (343, 345) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (343, 350) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (343, 350) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (343, 3491) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (343, 3491) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (343, 4248) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (343, 4248) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (343, 6962) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (343, 6962) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (343, 14562) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (343, 14562) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (537, 531) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (537, 531) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (537, 532) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (537, 532) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (537, 534) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (537, 534) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (537, 536) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (537, 536) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (537, 538) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (537, 538) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (537, 798) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (537, 798) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (339, 340) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (339, 340) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (339, 345) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (339, 345) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (339, 3484) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (339, 3484) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (339, 3491) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (339, 3491) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (339, 4248) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (339, 4248) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (339, 6962) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (339, 6962) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (339, 14562) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (339, 14562) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (46, 35) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (46, 35) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (46, 45) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (46, 45) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (46, 47) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (46, 47) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (46, 65) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (46, 65) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (46, 66) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (46, 66) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (116, 79) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (116, 79) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (116, 80) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (116, 80) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (116, 83) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (116, 83) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (116, 84) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (116, 84) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (116, 106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (116, 106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (168, 161) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (168, 161) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (168, 169) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (168, 169) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (168, 172) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (168, 172) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (168, 173) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (168, 173) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (168, 191) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (168, 191) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (79, 77) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (79, 77) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (79, 80) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (79, 80) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (79, 85) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (79, 85) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (79, 95) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (79, 95) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (79, 96) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (79, 96) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (40, 35) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (40, 35) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (40, 49) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (40, 49) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (40, 51) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (40, 51) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (40, 55) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (40, 55) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (40, 65) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (40, 65) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (40, 66) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (40, 66) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (80, 81) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (80, 81) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (80, 83) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (80, 83) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (80, 91) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (80, 91) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (80, 95) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (80, 95) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (80, 108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (80, 108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (80, 1063) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (80, 1063) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (164, 162) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (164, 162) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (164, 163) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (164, 163) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (164, 165) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (164, 165) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (164, 173) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (164, 173) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (164, 180) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (164, 180) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (164, 182) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (164, 182) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (798, 530) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (798, 530) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (798, 531) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (798, 531) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (798, 533) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (798, 533) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (798, 536) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (798, 536) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (798, 541) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (798, 541) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (798, 548) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (798, 548) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (798, 728) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (798, 728) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (50, 36) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (50, 36) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (50, 41) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (50, 41) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (50, 42) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (50, 42) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (50, 55) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (50, 55) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (50, 57) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (50, 57) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (33, 40) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (33, 40) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (33, 47) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (33, 47) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (33, 49) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (33, 49) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (33, 55) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (33, 55) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (81, 77) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (81, 77) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (81, 84) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (81, 84) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (81, 85) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (81, 85) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (81, 93) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (81, 93) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (81, 108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (81, 108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (91, 77) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (91, 77) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (91, 79) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (91, 79) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (91, 82) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (91, 82) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (91, 111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (91, 111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (91, 116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (91, 116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (91, 1063) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (91, 1063) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (82, 81) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (82, 81) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (82, 83) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (82, 83) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (82, 95) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (82, 95) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (82, 96) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (82, 96) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (82, 106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (82, 106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (82, 108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (82, 108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1579, 487) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1579, 487) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1579, 489) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1579, 489) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1579, 495) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1579, 495) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1579, 497) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1579, 497) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1579, 500) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1579, 500) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1579, 505) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1579, 505) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1579, 517) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1579, 517) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14562, 336) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14562, 336) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14562, 337) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14562, 337) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14562, 340) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14562, 340) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14562, 346) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14562, 346) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14562, 348) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14562, 348) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14562, 3490) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14562, 3490) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14562, 3491) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14562, 3491) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14562, 6962) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14562, 6962) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (83, 81) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (83, 81) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (83, 84) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (83, 84) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (83, 93) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (83, 93) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (83, 108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (83, 108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (83, 1063) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (83, 1063) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (492, 499) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (492, 499) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (492, 500) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (492, 500) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (492, 523) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (492, 523) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (492, 867) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (492, 867) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (492, 895) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (492, 895) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (492, 1579) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (492, 1579) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (34, 41) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (34, 41) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (34, 42) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (34, 42) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (34, 47) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (34, 47) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (34, 50) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (34, 50) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (84, 79) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (84, 79) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (84, 85) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (84, 85) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (84, 91) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (84, 91) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (84, 96) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (84, 96) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (84, 1063) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (84, 1063) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (65, 34) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (65, 34) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (65, 35) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (65, 35) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (65, 36) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (65, 36) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (65, 39) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (65, 39) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (65, 48) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (65, 48) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (65, 52) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (65, 52) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (727, 529) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (727, 529) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (727, 530) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (727, 530) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (727, 534) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (727, 534) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (727, 537) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (727, 537) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (727, 538) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (727, 538) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (727, 543) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (727, 543) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (727, 720) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (727, 720) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (727, 798) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (727, 798) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (523, 489) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (523, 489) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (523, 490) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (523, 490) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (523, 494) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (523, 494) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (523, 495) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (523, 495) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (523, 502) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (523, 502) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (523, 511) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (523, 511) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (349, 336) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (349, 336) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (349, 337) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (349, 337) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (349, 343) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (349, 343) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (349, 345) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (349, 345) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (349, 3484) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (349, 3484) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (349, 3490) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (349, 3490) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (349, 14562) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (349, 14562) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (348, 337) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (348, 337) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (348, 346) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (348, 346) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (348, 3490) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (348, 3490) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (348, 3493) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (348, 3493) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (348, 4248) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (348, 4248) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (348, 6962) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (348, 6962) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (85, 82) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (85, 82) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (85, 94) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (85, 94) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (85, 95) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (85, 95) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (85, 116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (85, 116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3490, 339) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3490, 339) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3490, 340) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3490, 340) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3490, 343) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3490, 343) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3490, 346) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3490, 346) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3490, 347) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3490, 347) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3490, 350) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3490, 350) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3490, 3484) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3490, 3484) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (4248, 336) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (4248, 336) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (4248, 340) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (4248, 340) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (4248, 346) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (4248, 346) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (4248, 349) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (4248, 349) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (4248, 350) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (4248, 350) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (4248, 3490) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (4248, 3490) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (4248, 3491) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (4248, 3491) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3491, 345) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3491, 345) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3491, 347) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3491, 347) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3491, 348) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3491, 348) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3491, 349) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3491, 349) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3491, 350) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3491, 350) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3491, 3490) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3491, 3490) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3491, 3493) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3491, 3493) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (173, 160) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (173, 160) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (173, 163) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (173, 163) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (173, 170) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (173, 170) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (173, 176) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (173, 176) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (173, 182) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (173, 182) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (541, 529) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (541, 529) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (541, 533) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (541, 533) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (541, 540) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (541, 540) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (541, 542) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (541, 542) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (541, 543) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (541, 543) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (541, 720) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (541, 720) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (541, 727) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (541, 727) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (548, 529) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (548, 529) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (548, 530) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (548, 530) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (548, 532) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (548, 532) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (548, 542) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (548, 542) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (93, 79) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (93, 79) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (93, 82) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (93, 82) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (93, 85) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (93, 85) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (93, 94) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (93, 94) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (93, 106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (93, 106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (94, 80) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (94, 80) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (94, 82) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (94, 82) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (94, 91) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (94, 91) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (94, 96) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (94, 96) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (94, 111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (94, 111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (94, 116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (94, 116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (160, 164) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (160, 164) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (160, 170) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (160, 170) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (160, 172) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (160, 172) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (160, 176) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (160, 176) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (160, 186) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (160, 186) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (536, 533) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (536, 533) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (536, 543) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (536, 543) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (536, 546) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (536, 546) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (536, 547) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (536, 547) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (536, 548) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (536, 548) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (536, 720) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (536, 720) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (337, 339) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (337, 339) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (337, 340) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (337, 340) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (337, 343) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (337, 343) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (337, 346) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (337, 346) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (337, 350) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (337, 350) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (337, 3491) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (337, 3491) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (337, 3493) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (337, 3493) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (41, 33) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (41, 33) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (41, 45) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (41, 45) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (41, 46) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (41, 46) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (41, 57) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (41, 57) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (41, 65) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (41, 65) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1063, 79) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1063, 79) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1063, 95) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1063, 95) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1063, 108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1063, 108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1063, 111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1063, 111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1063, 116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1063, 116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (186, 157) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (186, 157) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (186, 161) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (186, 161) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (186, 164) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (186, 164) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (186, 173) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (186, 173) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (186, 180) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (186, 180) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3493, 343) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3493, 343) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3493, 345) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3493, 345) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3493, 347) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3493, 347) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3493, 349) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3493, 349) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3493, 3484) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3493, 3484) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3493, 3490) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3493, 3490) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3493, 6962) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3493, 6962) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3493, 14562) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3493, 14562) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (95, 81) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (95, 81) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (95, 83) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (95, 83) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (95, 91) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (95, 91) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (95, 94) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (95, 94) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (95, 116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (95, 116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (503, 487) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (503, 487) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (503, 499) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (503, 499) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (503, 502) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (503, 502) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (503, 867) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (503, 867) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (503, 895) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (503, 895) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (47, 42) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (47, 42) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (47, 45) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (47, 45) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (47, 48) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (47, 48) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (47, 55) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (47, 55) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (47, 57) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (47, 57) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (47, 66) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (47, 66) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (96, 77) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (96, 77) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (96, 80) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (96, 80) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (96, 81) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (96, 81) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (96, 83) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (96, 83) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (96, 93) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (96, 93) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (96, 111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (96, 111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (494, 487) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (494, 487) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (494, 490) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (494, 490) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (494, 496) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (494, 496) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (494, 505) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (494, 505) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (494, 867) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (494, 867) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (494, 895) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (494, 895) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (182, 160) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (182, 160) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (182, 165) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (182, 165) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (182, 167) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (182, 167) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (182, 169) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (182, 169) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (182, 186) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (182, 186) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (532, 533) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (532, 533) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (532, 534) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (532, 534) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (532, 547) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (532, 547) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (532, 727) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (532, 727) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (720, 531) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (720, 531) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (720, 533) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (720, 533) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (720, 537) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (720, 537) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (720, 540) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (720, 540) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (720, 548) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (720, 548) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (720, 728) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (720, 728) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (720, 798) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (720, 798) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (728, 529) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (728, 529) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (728, 530) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (728, 530) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (728, 534) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (728, 534) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (728, 537) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (728, 537) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (728, 542) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (728, 542) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (728, 543) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (728, 543) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (728, 727) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (728, 727) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (517, 494) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (517, 494) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (517, 495) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (517, 495) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (517, 499) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (517, 499) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (517, 503) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (517, 503) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (517, 523) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (517, 523) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (504, 492) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (504, 492) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (504, 496) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (504, 496) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (504, 497) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (504, 497) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (504, 503) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (504, 503) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (504, 517) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (504, 517) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (504, 1579) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (504, 1579) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (172, 164) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (172, 164) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (172, 165) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (172, 165) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (172, 167) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (172, 167) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (172, 169) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (172, 169) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (172, 191) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (172, 191) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (533, 529) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (533, 529) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (533, 530) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (533, 530) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (533, 534) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (533, 534) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (533, 538) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (533, 538) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (533, 542) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (533, 542) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (533, 546) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (533, 546) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (162, 157) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (162, 157) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (162, 160) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (162, 160) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (162, 165) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (162, 165) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (162, 168) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (162, 168) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (162, 191) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (162, 191) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (48, 33) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (48, 33) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (48, 45) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (48, 45) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (48, 49) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (48, 49) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (48, 50) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (48, 50) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (48, 57) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (48, 57) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (48, 66) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (48, 66) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (6962, 337) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (6962, 337) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (6962, 339) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (6962, 339) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (6962, 340) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (6962, 340) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (6962, 346) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (6962, 346) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (6962, 347) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (6962, 347) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (6962, 349) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (6962, 349) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (6962, 4248) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (6962, 4248) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (161, 157) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (161, 157) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (161, 162) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (161, 162) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (161, 169) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (161, 169) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (161, 170) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (161, 170) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (161, 172) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (161, 172) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (39, 34) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (39, 34) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (39, 40) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (39, 40) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (39, 41) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (39, 41) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (39, 49) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (39, 49) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (39, 50) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (39, 50) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (39, 52) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (39, 52) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (345, 336) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (345, 336) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (345, 337) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (345, 337) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (345, 347) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (345, 347) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (345, 348) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (345, 348) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (345, 3484) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (345, 3484) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (345, 3490) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (345, 3490) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (345, 4248) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (345, 4248) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (157, 170) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (157, 170) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (546, 720) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (546, 720) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (336, 337) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (336, 337) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (91, 106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (91, 106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (85, 96) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (85, 96) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (345, 14562) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (345, 14562) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (489, 496) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (489, 496) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (42, 65) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (42, 65) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (66, 52) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (66, 52) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (530, 542) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (530, 542) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (165, 160) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (165, 160) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (35, 51) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (35, 51) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (538, 529) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (538, 529) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (169, 162) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (169, 162) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (45, 55) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (45, 55) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (36, 39) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (36, 39) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (547, 540) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (547, 540) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (175, 174) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (175, 174) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (167, 173) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (167, 173) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (534, 798) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (534, 798) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (347, 3484) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (347, 3484) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (343, 348) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (343, 348) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (339, 350) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (339, 350) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (46, 49) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (46, 49) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (116, 81) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (116, 81) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (168, 180) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (168, 180) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (50, 47) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (50, 47) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (523, 499) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (523, 499) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (93, 80) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (93, 80) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1063, 82) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1063, 82) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (532, 543) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (532, 543) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (504, 505) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (504, 505) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (172, 176) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (172, 176) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (161, 182) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (161, 182) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (531, 548) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (531, 548) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (108, 77) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (108, 77) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (163, 186) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (163, 186) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (895, 502) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (895, 502) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (495, 490) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (495, 490) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (340, 349) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (340, 349) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (57, 33) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (57, 33) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (191, 164) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (191, 164) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (487, 500) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (487, 500) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (79, 94) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (79, 94) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (83, 111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (83, 111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (492, 497) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (492, 497) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (84, 95) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (84, 95) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (727, 533) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (727, 533) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (4248, 3493) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (4248, 3493) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3491, 346) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3491, 346) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (536, 728) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (536, 728) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (41, 40) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (41, 40) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (503, 1579) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (503, 1579) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (511, 494) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (511, 494) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (411, 418) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (411, 418) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (34, 48) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (34, 48) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3490, 6962) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3490, 6962) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (517, 867) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (517, 867) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (51, 41) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (51, 41) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (490, 504) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (490, 504) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (350, 345) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (350, 345) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (798, 532) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (798, 532) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (349, 347) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (349, 347) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (93, 116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (93, 116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (186, 191) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (186, 191) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (489, 511) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (489, 511) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (542, 537) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (542, 537) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (170, 176) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (170, 176) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (529, 534) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (529, 534) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (500, 517) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (500, 517) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (165, 157) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (165, 157) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (55, 46) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (55, 46) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (106, 95) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (106, 95) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (895, 1579) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (895, 1579) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (52, 34) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (52, 34) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (540, 538) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (540, 538) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3484, 343) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3484, 343) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (85, 83) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (85, 83) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (94, 1063) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (94, 1063) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (160, 163) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (160, 163) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (337, 3490) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (337, 3490) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (182, 168) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (182, 168) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (720, 530) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (720, 530) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (162, 172) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (162, 172) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (48, 42) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (48, 42) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (6962, 3491) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (6962, 3491) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (39, 35) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (39, 35) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (49, 66) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (49, 66) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (180, 169) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (180, 169) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (346, 340) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (346, 340) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (111, 77) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (111, 77) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (867, 496) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (867, 496) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (40, 50) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (40, 50) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (80, 84) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (80, 84) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (164, 167) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (164, 167) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (33, 45) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (33, 45) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (81, 91) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (81, 91) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (82, 79) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (82, 79) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (523, 487) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (523, 487) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (348, 336) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (348, 336) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (541, 546) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (541, 546) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (548, 543) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (548, 543) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3493, 339) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3493, 339) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (503, 492) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (503, 492) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (47, 36) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (47, 36) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (96, 108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (96, 108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (494, 495) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (494, 495) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (728, 531) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (728, 531) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (533, 547) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (533, 547) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (497, 499) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (497, 499) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14562, 4248) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14562, 4248) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (536, 727) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (536, 727) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (57, 52) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (57, 52) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (46, 48) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (46, 48) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (798, 529) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (798, 529) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (66, 55) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (66, 55) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (531, 541) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (531, 541) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (45, 39) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (45, 39) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (50, 65) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (50, 65) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (34, 40) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (34, 40) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (41, 49) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (41, 49) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (35, 47) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (35, 47) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (36, 51) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (36, 51) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2938, 2939) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2938, 2939) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (499, 489) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (499, 489) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (108, 85) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (108, 85) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (538, 798) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (538, 798) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (340, 347) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (340, 347) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (505, 523) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (505, 523) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (79, 106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (79, 106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (4248, 3484) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (4248, 3484) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (172, 182) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (172, 182) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (77, 80) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (77, 80) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (497, 867) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (497, 867) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (66, 41) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (66, 41) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (163, 165) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (163, 165) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (157, 180) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (157, 180) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (549, 611) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (549, 611) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (543, 529) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (543, 529) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (176, 162) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (176, 162) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (55, 34) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (55, 34) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (169, 170) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (169, 170) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (495, 503) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (495, 503) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (547, 541) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (547, 541) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (496, 500) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (496, 500) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (191, 173) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (191, 173) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (534, 720) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (534, 720) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (343, 337) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (343, 337) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (168, 186) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (168, 186) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (33, 65) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (33, 65) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (91, 96) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (91, 96) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (84, 111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (84, 111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3491, 14562) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3491, 14562) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (532, 728) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (532, 728) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (6962, 3493) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (6962, 3493) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (531, 533) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (531, 533) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (530, 536) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (530, 536) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (502, 490) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (502, 490) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (36, 42) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (36, 42) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (167, 160) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (167, 160) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (57, 35) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (57, 35) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (537, 548) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (537, 548) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (46, 51) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (46, 51) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (116, 82) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (116, 82) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (83, 94) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (83, 94) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (492, 487) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (492, 487) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (727, 542) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (727, 542) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (349, 350) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (349, 350) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3490, 336) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3490, 336) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (95, 93) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (95, 93) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (47, 49) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (47, 49) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (517, 895) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (517, 895) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (504, 511) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (504, 511) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (161, 164) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (161, 164) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (345, 339) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (345, 339) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (546, 540) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (546, 540) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (346, 348) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (346, 348) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1579, 494) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1579, 494) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (48, 39) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (48, 39) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (511, 503) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (511, 503) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (160, 161) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (160, 161) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (96, 1063) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (96, 1063) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (720, 532) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (720, 532) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (42, 45) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (42, 45) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (170, 168) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (170, 168) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (108, 116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (108, 116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (163, 191) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (163, 191) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (490, 499) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (490, 499) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (540, 727) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (540, 727) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (496, 517) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (496, 517) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (40, 36) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (40, 36) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (97, 114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (97, 114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (164, 157) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (164, 157) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (798, 547) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (798, 547) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (34, 46) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (34, 46) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (65, 66) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (65, 66) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (536, 538) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (536, 538) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (337, 4248) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (337, 4248) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (186, 162) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (186, 162) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (494, 492) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (494, 492) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (182, 176) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (182, 176) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (728, 541) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (728, 541) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (39, 57) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (39, 57) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (489, 495) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (489, 495) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (542, 531) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (542, 531) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (529, 537) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (529, 537) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (500, 502) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (500, 502) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (165, 167) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (165, 167) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (51, 52) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (51, 52) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (49, 55) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (49, 55) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (895, 497) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (895, 497) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (180, 172) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (180, 172) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (111, 95) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (111, 95) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (867, 1579) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (867, 1579) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (50, 33) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (50, 33) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (82, 84) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (82, 84) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (523, 504) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (523, 504) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (85, 80) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (85, 80) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (4665, 726) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (4665, 726) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (173, 169) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (173, 169) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (548, 534) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (548, 534) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (94, 77) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (94, 77) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (41, 47) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (41, 47) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (533, 543) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (533, 543) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (35, 48) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (35, 48) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (487, 505) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (487, 505) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (496, 490) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (496, 490) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (540, 532) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (540, 532) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (91, 85) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (91, 85) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (533, 728) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (533, 728) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (157, 173) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (157, 173) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (547, 720) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (547, 720) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (504, 489) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (504, 489) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (66, 50) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (66, 50) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (55, 65) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (55, 65) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (538, 548) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (538, 548) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (52, 42) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (52, 42) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (169, 164) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (169, 164) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (495, 492) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (495, 492) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (546, 798) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (546, 798) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (167, 163) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (167, 163) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (57, 34) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (57, 34) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (191, 170) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (191, 170) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (867, 487) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (867, 487) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (168, 160) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (168, 160) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (727, 531) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (727, 531) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (503, 500) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (503, 500) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (172, 186) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (172, 186) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (162, 182) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (162, 182) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (48, 51) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (48, 51) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (497, 523) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (497, 523) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (499, 511) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (499, 511) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (543, 728) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (543, 728) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (176, 180) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (176, 180) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (45, 49) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (45, 49) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (36, 41) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (36, 41) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (534, 540) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (534, 540) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (537, 533) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (537, 533) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (46, 39) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (46, 39) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (539, 726) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (539, 726) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (33, 35) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (33, 35) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1579, 496) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1579, 496) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (541, 536) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (541, 536) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1063, 81) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1063, 81) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (47, 40) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (47, 40) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (532, 542) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (532, 542) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (517, 490) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (517, 490) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (161, 165) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (161, 165) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (502, 494) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (502, 494) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (505, 895) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (505, 895) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (35, 52) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (35, 52) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (49, 36) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (49, 36) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (40, 46) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (40, 46) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (50, 45) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (50, 45) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (34, 66) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (34, 66) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (65, 47) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (65, 47) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (41, 48) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (41, 48) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (39, 33) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (39, 33) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (42, 57) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (42, 57) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (51, 55) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (51, 55) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (490, 505) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (490, 505) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (511, 495) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (511, 495) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (487, 499) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (487, 499) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (523, 1579) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (523, 1579) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (52, 41) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (52, 41) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (45, 65) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (45, 65) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (36, 35) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (36, 35) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (496, 502) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (496, 502) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (46, 50) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (46, 50) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (492, 517) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (492, 517) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (228, 211) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (228, 211) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (47, 39) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (47, 39) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (494, 503) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (494, 503) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (48, 40) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (48, 40) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (66, 51) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (66, 51) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (500, 504) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (500, 504) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (895, 867) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (895, 867) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (57, 49) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (57, 49) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (33, 34) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (33, 34) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (55, 42) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (55, 42) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (505, 499) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (505, 499) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (84, 94) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (84, 94) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (532, 541) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (532, 541) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (66, 46) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (66, 46) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (35, 45) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (35, 45) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (51, 42) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (51, 42) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (52, 49) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (52, 49) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (502, 492) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (502, 492) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (79, 83) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (79, 83) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (80, 82) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (80, 82) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (50, 48) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (50, 48) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (41, 55) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (41, 55) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1063, 93) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1063, 93) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (47, 34) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (47, 34) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (517, 511) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (517, 511) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (504, 494) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (504, 494) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (77, 106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (77, 106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (497, 487) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (497, 487) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (36, 57) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (36, 57) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (867, 495) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (867, 495) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (116, 96) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (116, 96) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (40, 33) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (40, 33) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (81, 111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (81, 111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1579, 490) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1579, 490) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (95, 108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (95, 108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (503, 523) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (503, 523) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (39, 65) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (39, 65) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (108, 79) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (108, 79) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (165, 168) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (165, 168) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (487, 895) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (487, 895) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (83, 91) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (83, 91) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (728, 538) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (728, 538) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (489, 490) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (489, 490) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (542, 547) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (542, 547) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (163, 157) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (163, 157) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (106, 80) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (106, 80) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (511, 867) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (511, 867) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (540, 537) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (540, 537) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (180, 182) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (180, 182) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (167, 161) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (167, 161) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (164, 176) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (164, 176) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (93, 84) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (93, 84) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (94, 81) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (94, 81) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (160, 191) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (160, 191) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (536, 532) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (536, 532) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (186, 169) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (186, 169) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (503, 496) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (503, 496) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (494, 499) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (494, 499) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (720, 543) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (720, 543) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (42, 33) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (42, 33) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (530, 727) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (530, 727) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (170, 172) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (170, 172) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (500, 497) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (500, 497) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (495, 523) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (495, 523) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (534, 546) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (534, 546) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (111, 116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (111, 116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (82, 77) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (82, 77) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (492, 504) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (492, 504) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (85, 1063) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (85, 1063) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (173, 162) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (173, 162) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (96, 95) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (96, 95) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (517, 505) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (517, 505) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1579, 502) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1579, 502) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (548, 533) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (548, 533) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (499, 496) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (499, 496) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (55, 50) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (55, 50) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (49, 35) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (49, 35) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (895, 489) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (895, 489) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (169, 160) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (169, 160) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (191, 165) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (191, 165) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (168, 164) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (168, 164) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (81, 79) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (81, 79) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (65, 40) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (65, 40) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (93, 91) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (93, 91) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (48, 36) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (48, 36) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (161, 163) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (161, 163) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (42, 47) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (42, 47) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (157, 167) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (157, 167) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (176, 186) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (176, 186) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (106, 83) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (106, 83) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (45, 66) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (45, 66) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (505, 500) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (505, 500) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (46, 52) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (46, 52) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (34, 39) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (34, 39) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (182, 170) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (182, 170) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (162, 180) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (162, 180) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (57, 51) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (57, 51) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (33, 41) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (33, 41) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (548, 728) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (548, 728) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (497, 495) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (497, 495) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (169, 165) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (169, 165) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (540, 720) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (540, 720) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (79, 84) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (79, 84) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (82, 91) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (82, 91) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (42, 66) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (42, 66) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (499, 492) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (499, 492) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (157, 161) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (157, 161) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (543, 542) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (543, 542) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (176, 173) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (176, 173) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (500, 1579) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (500, 1579) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (55, 40) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (55, 40) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (546, 529) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (546, 529) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (547, 536) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (547, 536) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (180, 186) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (180, 186) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (496, 489) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (496, 489) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (191, 167) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (191, 167) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (537, 530) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (537, 530) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (46, 36) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (46, 36) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (116, 85) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (116, 85) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (168, 163) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (168, 163) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (80, 96) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (80, 96) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (34, 35) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (34, 35) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (94, 106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (94, 106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (172, 160) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (172, 160) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (48, 52) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (48, 52) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (77, 108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (77, 108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (490, 867) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (490, 867) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (538, 531) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (538, 531) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (45, 47) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (45, 47) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (502, 503) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (502, 503) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (505, 511) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (505, 511) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (57, 50) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (57, 50) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (33, 51) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (33, 51) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (81, 95) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (81, 95) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (65, 41) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (65, 41) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (727, 728) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (727, 728) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (523, 517) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (523, 517) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (541, 534) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (541, 534) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (93, 111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (93, 111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1063, 83) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1063, 83) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (182, 164) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (182, 164) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (532, 548) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (532, 548) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (504, 487) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (504, 487) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (162, 170) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (162, 170) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (49, 39) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (49, 39) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (895, 494) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (895, 494) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (533, 798) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (533, 798) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1837, 54) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1837, 54) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (108, 1063) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (108, 1063) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (534, 727) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (534, 727) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (515, 488) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (515, 488) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (503, 490) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (503, 490) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (161, 191) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (161, 191) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (530, 533) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (530, 533) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (170, 180) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (170, 180) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (163, 176) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (163, 176) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (165, 162) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (165, 162) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (35, 65) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (35, 65) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (51, 45) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (51, 45) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (895, 499) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (895, 499) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (40, 57) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (40, 57) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (164, 172) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (164, 172) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (798, 543) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (798, 543) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (50, 49) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (50, 49) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (91, 94) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (91, 94) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (492, 496) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (492, 496) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (173, 168) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (173, 168) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (160, 157) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (160, 157) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (536, 540) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (536, 540) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (41, 34) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (41, 34) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (95, 79) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (95, 79) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (720, 541) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (720, 541) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (39, 42) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (39, 42) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (489, 523) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (489, 523) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (66, 48) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (66, 48) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (531, 537) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (531, 537) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (529, 532) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (529, 532) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (52, 55) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (52, 55) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (36, 33) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (36, 33) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (167, 169) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (167, 169) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (487, 502) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (487, 502) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (111, 106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (111, 106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (867, 505) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (867, 505) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (116, 77) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (116, 77) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (83, 80) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (83, 80) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (84, 81) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (84, 81) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (548, 546) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (548, 546) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (186, 182) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (186, 182) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (47, 46) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (47, 46) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (96, 82) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (96, 82) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (494, 497) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (494, 497) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (728, 547) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (728, 547) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (542, 538) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (542, 538) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (495, 1579) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (495, 1579) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (517, 504) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (517, 504) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (37, 54) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (37, 54) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3484, 3493) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3484, 3493) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (347, 6962) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (347, 6962) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (537, 728) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (537, 728) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (82, 116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (82, 116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (523, 867) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (523, 867) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (162, 164) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (162, 164) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (499, 503) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (499, 503) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (530, 798) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (530, 798) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (157, 191) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (157, 191) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (176, 160) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (176, 160) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (500, 895) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (500, 895) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (35, 40) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (35, 40) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (350, 3491) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (350, 3491) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (540, 541) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (540, 541) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (45, 46) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (45, 46) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (546, 536) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (546, 536) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (180, 165) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (180, 165) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (57, 41) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (57, 41) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (79, 1063) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (79, 1063) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (91, 108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (91, 108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1579, 504) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1579, 504) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14562, 343) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14562, 343) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (34, 36) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (34, 36) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (65, 51) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (65, 51) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (348, 345) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (348, 345) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (186, 170) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (186, 170) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (494, 517) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (494, 517) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (182, 173) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (182, 173) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (172, 163) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (172, 163) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (533, 720) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (533, 720) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (39, 66) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (39, 66) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (194, 209) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (194, 209) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (77, 111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (77, 111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (42, 50) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (42, 50) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (497, 492) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (497, 492) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (529, 542) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (529, 542) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (543, 531) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (543, 531) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (55, 47) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (55, 47) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (169, 161) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (169, 161) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (502, 495) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (502, 495) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (340, 3490) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (340, 3490) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (336, 4248) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (336, 4248) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (339, 346) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (339, 346) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (168, 167) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (168, 167) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (33, 52) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (33, 52) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (81, 80) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (81, 80) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (727, 548) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (727, 548) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (93, 83) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (93, 83) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (94, 95) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (94, 95) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (96, 84) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (96, 84) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (532, 538) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (532, 538) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (490, 487) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (490, 487) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (49, 48) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (49, 48) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (547, 534) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (547, 534) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (337, 349) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (337, 349) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (530, 546) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (530, 546) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (489, 497) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (489, 497) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (537, 541) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (537, 541) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (197, 209) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (197, 209) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (95, 77) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (95, 77) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (502, 505) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (502, 505) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (548, 727) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (548, 727) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (532, 529) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (532, 529) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (157, 162) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (157, 162) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (895, 496) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (895, 496) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (212, 228) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (212, 228) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (33, 46) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (33, 46) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (83, 106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (83, 106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (348, 340) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (348, 340) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (85, 91) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (85, 91) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3493, 336) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3493, 336) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (728, 720) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (728, 720) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (531, 547) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (531, 547) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (163, 169) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (163, 169) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (165, 172) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (165, 172) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (538, 543) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (538, 543) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (511, 489) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (511, 489) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (45, 35) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (45, 35) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (167, 182) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (167, 182) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (534, 533) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (534, 533) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (79, 111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (79, 111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (164, 170) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (164, 170) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (84, 116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (84, 116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (349, 339) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (349, 339) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (4248, 337) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (4248, 337) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (160, 180) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (160, 180) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1063, 94) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1063, 94) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (503, 495) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (503, 495) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (504, 499) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (504, 499) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (161, 168) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (161, 168) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (542, 546) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (542, 546) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (77, 81) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (77, 81) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (108, 96) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (108, 96) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (490, 523) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (490, 523) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (192, 174) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (192, 174) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (191, 176) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (191, 176) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (346, 14562) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (346, 14562) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (487, 1579) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (487, 1579) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (867, 500) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (867, 500) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (80, 93) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (80, 93) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (492, 494) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (492, 494) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (708, 694) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (708, 694) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (173, 186) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (173, 186) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (548, 540) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (548, 540) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (536, 529) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (536, 529) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (95, 82) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (95, 82) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (532, 537) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (532, 537) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (517, 497) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (517, 497) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (6962, 350) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (6962, 350) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (505, 502) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (505, 502) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (798, 727) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (798, 727) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3490, 345) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3490, 345) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (106, 85) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (106, 85) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (583, 5354) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (583, 5354) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (45, 40) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (45, 40) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (170, 173) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (170, 173) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (500, 503) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (500, 503) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (106, 108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (106, 108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (51, 49) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (51, 49) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (350, 346) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (350, 346) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (547, 546) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (547, 546) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (347, 3491) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (347, 3491) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (489, 504) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (489, 504) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (66, 57) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (66, 57) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (499, 490) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (499, 490) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (530, 538) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (530, 538) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (176, 165) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (176, 165) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (52, 45) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (52, 45) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (36, 65) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (36, 65) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (340, 4248) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (340, 4248) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (487, 492) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (487, 492) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (537, 542) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (537, 542) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (339, 3490) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (339, 3490) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (46, 42) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (46, 42) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (50, 34) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (50, 34) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (81, 1063) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (81, 1063) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (91, 83) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (91, 83) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (727, 541) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (727, 541) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (337, 6962) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (337, 6962) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (41, 35) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (41, 35) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (186, 160) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (186, 160) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (96, 85) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (96, 85) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (182, 163) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (182, 163) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (172, 161) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (172, 161) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (533, 532) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (533, 532) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (48, 55) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (48, 55) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (543, 548) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (543, 548) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (169, 191) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (169, 191) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (540, 531) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (540, 531) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (651, 2390) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (651, 2390) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (502, 895) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (502, 895) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3484, 349) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3484, 349) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (180, 164) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (180, 164) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (336, 14562) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (336, 14562) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (496, 505) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (496, 505) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (111, 84) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (111, 84) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (116, 95) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (116, 95) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (40, 39) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (40, 39) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (798, 534) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (798, 534) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (82, 80) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (82, 80) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1579, 867) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1579, 867) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (523, 497) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (523, 497) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (93, 77) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (93, 77) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (94, 79) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (94, 79) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3493, 348) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3493, 348) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (494, 511) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (494, 511) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (720, 536) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (720, 536) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (162, 167) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (162, 167) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (529, 728) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (529, 728) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (495, 517) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (495, 517) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (345, 343) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (345, 343) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (66, 40) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (66, 40) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (85, 106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (85, 106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (538, 727) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (538, 727) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (867, 494) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (867, 494) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (46, 55) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (46, 55) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (349, 3493) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (349, 3493) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3491, 340) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3491, 340) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (94, 93) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (94, 93) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (160, 162) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (160, 162) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2938, 2932) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2938, 2932) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (542, 540) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (542, 540) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (42, 48) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (42, 48) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (66, 49) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (66, 49) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (108, 81) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (108, 81) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (163, 170) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (163, 170) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (165, 182) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (165, 182) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (45, 33) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (45, 33) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (505, 495) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (505, 495) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (57, 47) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (57, 47) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (191, 168) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (191, 168) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (346, 337) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (346, 337) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (534, 529) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (534, 529) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (79, 91) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (79, 91) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (164, 186) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (164, 186) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (523, 500) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (523, 500) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (556, 13976) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (556, 13976) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (4248, 339) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (4248, 339) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (561, 620) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (561, 620) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (41, 51) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (41, 51) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1063, 77) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1063, 77) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (503, 489) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (503, 489) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (532, 530) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (532, 530) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (728, 533) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (728, 533) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (517, 487) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (517, 487) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (6962, 348) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (6962, 348) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (161, 176) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (161, 176) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (531, 720) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (531, 720) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (157, 169) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (157, 169) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (490, 496) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (490, 496) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (895, 492) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (895, 492) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (350, 336) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (350, 336) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (511, 499) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (511, 499) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (192, 158) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (192, 158) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (546, 543) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (546, 543) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (167, 172) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (167, 172) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (111, 96) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (111, 96) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (347, 345) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (347, 345) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (343, 3490) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (343, 3490) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (80, 85) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (80, 85) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (50, 40) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (50, 40) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (83, 116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (83, 116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (34, 65) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (34, 65) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (84, 82) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (84, 82) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (567, 560) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (567, 560) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (173, 180) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (173, 180) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (541, 547) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (541, 547) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (548, 537) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (548, 537) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (95, 106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (95, 106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (504, 502) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (504, 502) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (565, 606) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (565, 606) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (497, 1579) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (497, 1579) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (645, 611) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (645, 611) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14562, 3484) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14562, 3484) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (536, 798) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (536, 798) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (77, 93) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (77, 93) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (529, 530) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (529, 530) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (51, 35) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (51, 35) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (49, 41) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (49, 41) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (39, 36) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (39, 36) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (55, 45) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (55, 45) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (496, 511) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (496, 511) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (40, 34) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (40, 34) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (33, 57) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (33, 57) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (65, 42) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (65, 42) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (348, 349) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (348, 349) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (173, 161) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (173, 161) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (548, 541) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (548, 541) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (47, 50) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (47, 50) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (500, 489) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (500, 489) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (48, 46) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (48, 46) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (502, 867) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (502, 867) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (340, 350) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (340, 350) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (91, 93) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (91, 93) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (4248, 6962) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (4248, 6962) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (720, 534) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (720, 534) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (172, 157) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (172, 157) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (499, 517) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (499, 517) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (530, 531) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (530, 531) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (529, 548) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (529, 548) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (54, 1358) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (54, 1358) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (176, 167) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (176, 167) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (35, 39) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (35, 39) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (169, 168) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (169, 168) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (547, 538) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (547, 538) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (180, 163) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (180, 163) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (116, 111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (116, 111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (492, 505) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (492, 505) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (348, 347) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (348, 347) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (85, 79) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (85, 79) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (173, 164) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (173, 164) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1063, 84) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1063, 84) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (186, 165) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (186, 165) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3493, 346) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3493, 346) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (494, 523) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (494, 523) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (728, 536) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (728, 536) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (162, 161) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (162, 161) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (345, 349) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (345, 349) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (489, 487) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (489, 487) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (77, 96) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (77, 96) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (497, 895) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (497, 895) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (170, 160) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (170, 160) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (108, 95) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (108, 95) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (543, 541) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (543, 541) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (500, 490) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (500, 490) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (620, 608) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (620, 608) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (495, 511) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (495, 511) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (336, 3484) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (336, 3484) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (537, 546) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (537, 546) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (339, 337) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (339, 337) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (80, 106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (80, 106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (798, 542) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (798, 542) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (33, 36) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (33, 36) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (81, 83) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (81, 83) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (82, 94) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (82, 94) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1579, 503) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1579, 503) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (34, 51) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (34, 51) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (727, 532) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (727, 532) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3490, 14562) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3490, 14562) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (182, 191) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (182, 191) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (496, 504) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (496, 504) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (65, 57) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (65, 57) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3491, 343) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3491, 343) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (541, 530) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (541, 530) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (157, 168) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (157, 168) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (163, 164) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (163, 164) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (490, 495) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (490, 495) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (346, 3490) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (346, 3490) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (337, 348) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (337, 348) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (96, 91) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (96, 91) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (542, 533) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (542, 533) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (157, 176) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (157, 176) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (165, 170) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (165, 170) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (55, 66) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (55, 66) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (51, 36) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (51, 36) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (538, 537) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (538, 537) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (895, 517) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (895, 517) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (350, 4248) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (350, 4248) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (52, 57) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (52, 57) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (175, 158) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (175, 158) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (505, 1579) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (505, 1579) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (191, 172) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (191, 172) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (867, 489) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (867, 489) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (347, 3493) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (347, 3493) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (168, 162) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (168, 162) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (79, 82) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (79, 82) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (40, 41) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (40, 41) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (81, 116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (81, 116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (114, 97) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (114, 97) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (523, 503) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (523, 503) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (349, 3491) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (349, 3491) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (94, 85) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (94, 85) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (160, 173) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (160, 173) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (628, 560) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (628, 560) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (532, 720) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (532, 720) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (161, 186) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (161, 186) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (39, 45) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (39, 45) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (531, 798) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (531, 798) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (543, 534) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (543, 534) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (106, 77) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (106, 77) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (49, 46) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (49, 46) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (169, 182) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (169, 182) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (511, 497) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (511, 497) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (546, 530) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (546, 530) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (167, 180) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (167, 180) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (496, 499) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (496, 499) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (111, 1063) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (111, 1063) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (343, 340) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (343, 340) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (33, 42) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (33, 42) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (552, 677) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (552, 677) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (83, 95) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (83, 95) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (492, 502) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (492, 502) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (84, 80) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (84, 80) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (541, 728) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (541, 728) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (548, 536) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (548, 536) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (93, 108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (93, 108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (47, 35) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (47, 35) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (504, 500) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (504, 500) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (6962, 336) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (6962, 336) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (540, 547) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (540, 547) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (487, 494) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (487, 494) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14562, 339) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14562, 339) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (48, 34) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (48, 34) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (168, 157) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (168, 157) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (530, 541) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (530, 541) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (495, 867) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (495, 867) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (534, 542) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (534, 542) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (84, 108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (84, 108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (348, 350) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (348, 350) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (4248, 343) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (4248, 343) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (186, 167) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (186, 167) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (489, 895) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (489, 895) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (77, 91) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (77, 91) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (170, 161) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (170, 161) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (35, 55) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (35, 55) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (45, 48) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (45, 48) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (547, 532) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (547, 532) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (340, 14562) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (340, 14562) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (57, 65) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (57, 65) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (116, 94) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (116, 94) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (164, 160) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (164, 160) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (798, 540) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (798, 540) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (50, 51) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (50, 51) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1579, 523) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1579, 523) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (83, 79) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (83, 79) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (173, 165) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (173, 165) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (41, 39) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (41, 39) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3493, 337) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3493, 337) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (503, 511) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (503, 511) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (494, 504) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (494, 504) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (182, 157) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (182, 157) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (720, 538) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (720, 538) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (533, 541) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (533, 541) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (162, 163) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (162, 163) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (42, 49) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (42, 49) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (497, 490) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (497, 490) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (499, 505) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (499, 505) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (176, 169) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (176, 169) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (500, 487) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (500, 487) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (106, 93) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (106, 93) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (502, 496) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (502, 496) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (36, 47) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (36, 47) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (180, 191) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (180, 191) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (726, 539) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (726, 539) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (336, 347) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (336, 347) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (537, 543) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (537, 543) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (46, 33) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (46, 33) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (80, 111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (80, 111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (82, 1063) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (82, 1063) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (727, 546) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (727, 546) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (85, 81) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (85, 81) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3490, 349) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3490, 349) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3491, 339) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3491, 339) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (561, 608) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (561, 608) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (536, 531) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (536, 531) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (656, 1120) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (656, 1120) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (95, 96) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (95, 96) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (728, 548) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (728, 548) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (517, 492) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (517, 492) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (172, 168) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (172, 168) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1094, 1104) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1094, 1104) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 25) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 25) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 9) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 9) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (777, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (777, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (772, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (772, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1106, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1106, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 15) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 15) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 772) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 772) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 777) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 777) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (18, 1111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (18, 1111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (27, 21) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (27, 21) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (776, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (776, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 1117) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 1117) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10, 1092) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10, 1092) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1097, 1099) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1097, 1099) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 1100) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 1100) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1116, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1116, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1114, 1101) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1114, 1101) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (15, 1102) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (15, 1102) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (529, 727) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (529, 727) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (339, 348) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (339, 348) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (168, 176) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (168, 176) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (349, 6962) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (349, 6962) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (95, 80) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (95, 80) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (542, 728) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (542, 728) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (163, 173) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (163, 173) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (157, 186) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (157, 186) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (549, 645) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (549, 645) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (51, 65) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (51, 65) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (895, 511) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (895, 511) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (350, 3490) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (350, 3490) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (169, 172) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (169, 172) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (540, 530) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (540, 530) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (36, 52) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (36, 52) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (167, 170) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (167, 170) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (496, 495) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (496, 495) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (191, 162) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (191, 162) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (867, 497) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (867, 497) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (343, 336) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (343, 336) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (91, 84) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (91, 84) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (541, 537) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (541, 537) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (548, 720) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (548, 720) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (93, 81) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (93, 81) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (337, 347) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (337, 347) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1063, 85) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1063, 85) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (517, 500) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (517, 500) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (161, 180) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (161, 180) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (575, 619) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (575, 619) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (77, 94) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (77, 94) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (531, 727) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (531, 727) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (108, 82) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (108, 82) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (529, 547) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (529, 547) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (543, 536) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (543, 536) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (165, 164) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (165, 164) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (35, 50) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (35, 50) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (490, 1579) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (490, 1579) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (502, 499) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (502, 499) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (742, 631) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (742, 631) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (546, 533) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (546, 533) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3484, 340) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3484, 340) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (505, 494) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (505, 494) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (346, 4248) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (346, 4248) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (111, 83) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (111, 83) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (79, 116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (79, 116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14562, 3493) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14562, 3493) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (492, 489) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (492, 489) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (553, 617) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (553, 617) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (197, 194) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (197, 194) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (781, 571) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (781, 571) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (160, 182) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (160, 182) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (628, 567) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (628, 567) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (96, 106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (96, 106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1120, 3554) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1120, 3554) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (532, 798) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (532, 798) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (538, 534) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (538, 534) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (487, 503) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (487, 503) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (504, 523) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (504, 523) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (345, 3491) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (345, 3491) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (42, 36) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (42, 36) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (511, 500) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (511, 500) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (65, 33) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (65, 33) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (39, 48) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (39, 48) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (489, 505) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (489, 505) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (530, 529) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (530, 529) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (35, 57) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (35, 57) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (51, 66) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (51, 66) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3745, 579) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3745, 579) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (40, 45) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (40, 45) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (50, 46) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (50, 46) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (34, 55) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (34, 55) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (41, 52) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (41, 52) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (172, 173) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (172, 173) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (49, 47) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (49, 47) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2932, 2939) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2932, 2939) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (170, 157) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (170, 157) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (495, 494) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (495, 494) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (84, 83) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (84, 83) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3493, 350) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3493, 350) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (728, 540) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (728, 540) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (6962, 343) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (6962, 343) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (489, 502) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (489, 502) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (66, 65) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (66, 65) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (529, 543) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (529, 543) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (176, 172) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (176, 172) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (106, 91) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (106, 91) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (52, 51) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (52, 51) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (45, 42) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (45, 42) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (547, 542) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (547, 542) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (180, 168) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (180, 168) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (57, 39) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (57, 39) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (347, 346) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (347, 346) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (80, 79) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (80, 79) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (164, 191) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (164, 191) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (798, 538) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (798, 538) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1579, 895) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1579, 895) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (523, 505) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (523, 505) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (85, 77) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (85, 77) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (4248, 345) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (4248, 345) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (173, 167) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (173, 167) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (541, 532) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (541, 532) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (160, 165) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (160, 165) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (337, 14562) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (337, 14562) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (162, 169) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (162, 169) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (48, 35) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (48, 35) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3554, 656) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3554, 656) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (740, 569) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (740, 569) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (497, 496) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (497, 496) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (499, 487) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (499, 487) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (55, 49) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (55, 49) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (511, 490) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (511, 490) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (212, 211) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (212, 211) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (36, 40) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (36, 40) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (340, 339) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (340, 339) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (336, 349) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (336, 349) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (534, 548) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (534, 548) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (867, 517) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (867, 517) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (116, 1063) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (116, 1063) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (539, 4665) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (539, 4665) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (33, 50) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (33, 50) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (81, 96) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (81, 96) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (82, 111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (82, 111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (617, 575) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (617, 575) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (619, 553) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (619, 553) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (348, 3484) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (348, 3484) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (93, 95) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (93, 95) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (94, 108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (94, 108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (536, 530) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (536, 530) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (186, 163) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (186, 163) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (503, 504) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (503, 504) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (47, 41) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (47, 41) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (182, 161) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (182, 161) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (720, 546) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (720, 546) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (533, 531) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (533, 531) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (500, 492) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (500, 492) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (418, 411) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (418, 411) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (537, 727) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (537, 727) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (46, 34) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (46, 34) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3490, 3491) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3490, 3491) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (694, 708) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (694, 708) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (346, 6962) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (346, 6962) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (116, 93) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (116, 93) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (679, 588) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (679, 588) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (494, 489) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (494, 489) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (532, 536) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (532, 536) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (161, 173) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (161, 173) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (345, 340) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (345, 340) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (42, 55) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (42, 55) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (163, 160) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (163, 160) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (157, 165) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (157, 165) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (176, 170) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (176, 170) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (51, 46) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (51, 46) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (538, 540) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (538, 540) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (350, 337) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (350, 337) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (598, 573) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (598, 573) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (546, 534) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (546, 534) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3484, 3490) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3484, 3490) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (167, 164) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (167, 164) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (505, 490) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (505, 490) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (496, 867) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (496, 867) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (191, 186) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (191, 186) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (537, 529) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (537, 529) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (168, 182) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (168, 182) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (50, 52) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (50, 52) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (91, 81) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (91, 81) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (65, 45) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (65, 45) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3491, 4248) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3491, 4248) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (548, 798) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (548, 798) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (41, 66) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (41, 66) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (95, 84) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (95, 84) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (96, 79) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (96, 79) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (517, 1579) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (517, 1579) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (542, 541) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (542, 541) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (77, 82) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (77, 82) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (740, 631) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (740, 631) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2247, 3402) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2247, 3402) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (499, 500) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (499, 500) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (531, 728) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (531, 728) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (108, 80) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (108, 80) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (543, 533) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (543, 533) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (49, 57) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (49, 57) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (895, 503) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (895, 503) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (169, 180) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (169, 180) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (400, 407) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (400, 407) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (502, 523) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (502, 523) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (487, 497) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (487, 497) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (111, 94) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (111, 94) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (339, 336) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (339, 336) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (40, 48) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (40, 48) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14562, 347) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14562, 347) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (34, 33) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (34, 33) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (553, 575) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (553, 575) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (727, 547) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (727, 547) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (617, 619) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (617, 619) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (349, 348) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (349, 348) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (781, 601) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (781, 601) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (571, 637) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (571, 637) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1063, 106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1063, 106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (504, 495) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (504, 495) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (172, 162) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (172, 162) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (39, 47) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (39, 47) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (530, 720) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (530, 720) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (35, 36) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (35, 36) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (343, 3493) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (343, 3493) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (604, 4195) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (604, 4195) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (492, 511) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (492, 511) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (34, 52) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (34, 52) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (540, 546) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (540, 546) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (5354, 583) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (5354, 583) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (94, 83) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (94, 83) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (497, 504) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (497, 504) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (66, 34) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (66, 34) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (529, 538) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (529, 538) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (55, 51) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (55, 51) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (52, 35) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (52, 35) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (394, 388) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (394, 388) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (45, 50) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (45, 50) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (180, 157) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (180, 157) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (726, 4665) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (726, 4665) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (534, 530) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (534, 530) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (867, 895) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (867, 895) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (164, 161) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (164, 161) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (798, 537) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (798, 537) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (81, 82) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (81, 82) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (91, 95) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (91, 95) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1579, 492) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1579, 492) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (349, 346) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (349, 346) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (348, 3491) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (348, 3491) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (85, 111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (85, 111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (173, 191) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (173, 191) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (160, 167) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (160, 167) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (174, 175) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (174, 175) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (337, 3484) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (337, 3484) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1120, 656) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1120, 656) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (182, 172) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (182, 172) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (728, 532) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (728, 532) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (162, 176) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (162, 176) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (48, 41) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (48, 41) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (6962, 14562) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (6962, 14562) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (489, 499) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (489, 499) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (170, 169) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (170, 169) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (500, 505) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (500, 505) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (165, 163) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (165, 163) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (106, 116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (106, 116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (511, 517) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (511, 517) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (559, 2246) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (559, 2246) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (36, 49) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (36, 49) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (631, 569) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (631, 569) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (57, 42) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (57, 42) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (46, 40) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (46, 40) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (79, 108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (79, 108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (33, 39) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (33, 39) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (84, 77) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (84, 77) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (541, 531) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (541, 531) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (93, 96) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (93, 96) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (536, 542) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (536, 542) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1063, 80) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1063, 80) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (186, 168) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (186, 168) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (720, 727) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (720, 727) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (533, 548) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (533, 548) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (490, 502) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (490, 502) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (495, 487) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (495, 487) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (547, 543) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (547, 543) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (336, 345) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (336, 345) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (339, 343) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (339, 343) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (523, 496) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (523, 496) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3490, 4248) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3490, 4248) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (503, 494) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (503, 494) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (47, 65) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (47, 65) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (529, 798) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (529, 798) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (50, 66) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (50, 66) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (83, 85) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (83, 85) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3493, 340) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3493, 340) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (532, 540) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (532, 540) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (542, 548) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (542, 548) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (740, 742) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (740, 742) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (42, 52) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (42, 52) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (531, 534) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (531, 534) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (538, 533) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (538, 533) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (546, 541) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (546, 541) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (363, 375) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (363, 375) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (505, 489) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (505, 489) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (530, 728) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (530, 728) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (543, 720) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (543, 720) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (500, 511) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (500, 511) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (537, 547) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (537, 547) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (727, 536) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (727, 536) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (85, 84) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (85, 84) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3490, 348) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3490, 348) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3491, 337) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3491, 337) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (172, 180) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (172, 180) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (157, 164) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (157, 164) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (51, 48) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (51, 48) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (49, 45) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (49, 45) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (52, 66) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (52, 66) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (169, 173) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (169, 173) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (4160, 10124) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (4160, 10124) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3484, 339) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3484, 339) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (167, 165) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (167, 165) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (191, 163) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (191, 163) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (111, 91) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (111, 91) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (343, 349) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (343, 349) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (168, 170) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (168, 170) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (80, 94) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (80, 94) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14562, 350) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14562, 350) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (34, 57) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (34, 57) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (41, 36) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (41, 36) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (95, 1063) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (95, 1063) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (161, 160) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (161, 160) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (39, 46) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (39, 46) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (575, 553) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (575, 553) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (77, 79) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (77, 79) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (499, 867) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (499, 867) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (176, 182) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (176, 182) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (35, 33) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (35, 33) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (895, 495) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (895, 495) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (620, 561) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (620, 561) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (502, 511) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (502, 511) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (340, 6962) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (340, 6962) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (505, 497) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (505, 497) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (496, 1579) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (496, 1579) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (346, 336) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (346, 336) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (116, 108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (116, 108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (40, 47) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (40, 47) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (81, 106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (81, 106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (82, 93) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (82, 93) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (83, 96) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (83, 96) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (492, 503) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (492, 503) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (65, 50) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (65, 50) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (619, 617) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (619, 617) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (567, 628) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (567, 628) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (4248, 347) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (4248, 347) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (13976, 556) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (13976, 556) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (550, 572) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (550, 572) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (517, 489) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (517, 489) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (533, 540) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (533, 540) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (162, 186) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (162, 186) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3554, 1120) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3554, 1120) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (487, 523) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (487, 523) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (494, 500) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (494, 500) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (504, 490) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (504, 490) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (345, 3493) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (345, 3493) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (569, 631) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (569, 631) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (65, 55) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (65, 55) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (180, 176) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (180, 176) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (50, 39) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (50, 39) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (84, 93) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (84, 93) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (348, 339) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (348, 339) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (503, 517) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (503, 517) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (728, 546) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (728, 546) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (542, 530) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (542, 530) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (42, 35) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (42, 35) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (66, 36) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (66, 36) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (163, 167) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (163, 167) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (165, 161) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (165, 161) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (490, 494) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (490, 494) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (45, 57) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (45, 57) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (608, 620) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (608, 620) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (505, 504) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (505, 504) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (534, 532) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (534, 532) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (867, 492) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (867, 492) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (347, 3490) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (347, 3490) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (46, 41) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (46, 41) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (566, 646) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (566, 646) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (677, 552) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (677, 552) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (523, 895) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (523, 895) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (173, 157) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (173, 157) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (337, 345) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (337, 345) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (560, 567) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (560, 567) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (656, 3554) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (656, 3554) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1063, 91) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1063, 91) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (186, 172) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (186, 172) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3493, 3491) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3493, 3491) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (95, 85) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (95, 85) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (96, 94) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (96, 94) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (182, 162) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (182, 162) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (720, 529) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (720, 529) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (533, 727) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (533, 727) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (575, 617) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (575, 617) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (497, 502) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (497, 502) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (170, 191) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (170, 191) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (108, 111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (108, 111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (500, 496) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (500, 496) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (55, 33) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (55, 33) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (106, 82) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (106, 82) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (51, 34) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (51, 34) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (407, 400) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (407, 400) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (49, 40) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (49, 40) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (350, 343) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (350, 343) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (511, 487) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (511, 487) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (540, 543) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (540, 543) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (611, 549) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (611, 549) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (4346, 609) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (4346, 609) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (336, 340) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (336, 340) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (79, 81) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (79, 81) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (80, 116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (80, 116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (164, 169) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (164, 169) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1579, 499) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1579, 499) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (83, 77) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (83, 77) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (553, 619) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (553, 619) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (349, 4248) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (349, 4248) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (541, 538) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (541, 538) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (548, 531) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (548, 531) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (160, 168) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (160, 168) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (536, 537) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (536, 537) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (48, 47) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (48, 47) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (52, 65) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (52, 65) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (495, 489) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (495, 489) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (547, 798) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (547, 798) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (346, 3484) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (346, 3484) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2939, 2938) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2939, 2938) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (340, 337) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (340, 337) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (534, 728) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (534, 728) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14562, 349) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14562, 349) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (637, 571) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (637, 571) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (161, 167) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (161, 167) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (77, 95) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (77, 95) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (530, 548) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (530, 548) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (108, 83) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (108, 83) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (157, 163) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (157, 163) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (211, 228) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (211, 228) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (176, 164) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (176, 164) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (35, 66) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (35, 66) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (106, 79) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (106, 79) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (538, 536) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (538, 536) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (895, 490) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (895, 490) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (511, 523) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (511, 523) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (36, 45) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (36, 45) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (547, 533) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (547, 533) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (57, 55) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (57, 55) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (191, 160) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (191, 160) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (487, 496) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (487, 496) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (111, 81) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (111, 81) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (798, 720) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (798, 720) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (91, 80) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (91, 80) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (82, 85) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (82, 85) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2390, 651) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2390, 651) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3491, 336) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3491, 336) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (93, 1063) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (93, 1063) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (94, 84) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (94, 84) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (560, 628) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (560, 628) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (41, 50) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (41, 50) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (96, 116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (96, 116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (182, 180) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (182, 180) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (532, 546) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (532, 546) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (162, 173) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (162, 173) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (39, 51) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (39, 51) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (345, 6962) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (345, 6962) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (531, 542) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (531, 542) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (601, 781) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (601, 781) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (529, 541) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (529, 541) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (543, 727) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (543, 727) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (169, 186) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (169, 186) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (209, 197) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (209, 197) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (742, 569) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (742, 569) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (631, 740) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (631, 740) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3484, 350) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3484, 350) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (343, 346) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (343, 346) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (537, 540) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (537, 540) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (339, 347) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (339, 347) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (168, 165) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (168, 165) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (40, 42) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (40, 42) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (33, 48) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (33, 48) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (492, 495) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (492, 495) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (34, 49) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (34, 49) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (65, 46) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (65, 46) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (617, 553) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (617, 553) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (619, 575) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (619, 575) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (503, 505) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (503, 505) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (47, 52) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (47, 52) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (494, 1579) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (494, 1579) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (504, 867) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (504, 867) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (172, 170) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (172, 170) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (499, 497) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (499, 497) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3490, 3493) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3490, 3493) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (517, 502) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (517, 502) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (548, 538) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (548, 538) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (536, 534) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (536, 534) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (720, 547) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (720, 547) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (489, 500) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (489, 500) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (542, 532) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (542, 532) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (541, 798) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (541, 798) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (533, 537) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (533, 537) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (66, 47) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (66, 47) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (49, 33) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (49, 33) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (337, 336) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (337, 336) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3493, 4248) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3493, 4248) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (170, 182) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (170, 182) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (163, 161) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (163, 161) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (165, 191) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (165, 191) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (52, 50) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (52, 50) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (495, 499) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (495, 499) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (180, 162) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (180, 162) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (167, 157) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (167, 157) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (346, 3491) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (346, 3491) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (116, 91) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (116, 91) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (646, 566) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (646, 566) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (79, 93) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (79, 93) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (80, 77) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (80, 77) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (164, 168) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (164, 168) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (81, 94) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (81, 94) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (83, 82) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (83, 82) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (84, 106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (84, 106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (348, 343) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (348, 343) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (85, 108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (85, 108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (173, 172) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (173, 172) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (160, 169) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (160, 169) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1063, 96) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1063, 96) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (186, 176) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (186, 176) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (95, 111) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (95, 111) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (42, 34) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (42, 34) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (497, 489) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (497, 489) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (530, 543) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (530, 543) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (529, 533) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (529, 533) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (55, 36) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (55, 36) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (490, 517) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (490, 517) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (538, 728) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (538, 728) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (350, 339) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (350, 339) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (45, 41) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (45, 41) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (502, 500) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (502, 500) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (687, 2273) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (687, 2273) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (631, 742) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (631, 742) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3484, 347) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3484, 347) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (608, 561) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (608, 561) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (505, 487) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (505, 487) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (496, 494) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (496, 494) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (534, 537) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (534, 537) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (867, 503) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (867, 503) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (46, 57) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (46, 57) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (798, 546) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (798, 546) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1579, 511) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1579, 511) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14562, 345) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14562, 345) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3402, 2247) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3402, 2247) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (727, 540) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (727, 540) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (523, 492) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (523, 492) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (781, 637) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (781, 637) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (548, 547) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (548, 547) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (536, 541) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (536, 541) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (532, 531) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (532, 531) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (720, 542) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (720, 542) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (504, 895) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (504, 895) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (48, 65) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (48, 65) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (51, 40) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (51, 40) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (407, 397) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (407, 397) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (4195, 604) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (4195, 604) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (6962, 3490) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (6962, 3490) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (52, 39) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (52, 39) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (50, 35) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (50, 35) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (47, 33) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (47, 33) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (543, 532) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (543, 532) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2246, 559) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2246, 559) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (895, 505) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (895, 505) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (492, 490) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (492, 490) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (489, 1579) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (489, 1579) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (542, 727) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (542, 727) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (500, 495) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (500, 495) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (579, 3745) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (579, 3745) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (2262, 685) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (2262, 685) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (540, 534) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (540, 534) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (546, 538) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (546, 538) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (340, 346) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (340, 346) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (336, 348) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (336, 348) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (347, 349) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (347, 349) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (343, 3484) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (343, 3484) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (537, 720) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (537, 720) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (339, 3493) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (339, 3493) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (606, 565) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (606, 565) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (85, 93) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (85, 93) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3490, 337) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3490, 337) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (4248, 14562) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (4248, 14562) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3491, 6962) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3491, 6962) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (571, 781) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (571, 781) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (541, 548) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (541, 548) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (728, 798) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (728, 798) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (345, 350) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (345, 350) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (499, 523) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (499, 523) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (531, 529) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (531, 529) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (35, 46) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (35, 46) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (569, 740) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (569, 740) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (511, 504) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (511, 504) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (36, 50) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (36, 50) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (547, 530) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (547, 530) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (57, 48) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (57, 48) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (487, 867) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (487, 867) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (40, 52) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (40, 52) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (33, 66) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (33, 66) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (34, 45) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (34, 45) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (65, 49) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (65, 49) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (41, 42) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (41, 42) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (503, 497) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (503, 497) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (47, 51) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (47, 51) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (494, 502) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (494, 502) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (517, 496) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (517, 496) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (533, 536) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (533, 536) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (39, 55) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (39, 55) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (276, 278) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (276, 278) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (25, 27) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (25, 27) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1100, 1095) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1100, 1095) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1104, 1098) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1104, 1098) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (9, 2) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (9, 2) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1103, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1103, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (770, 1109) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (770, 1109) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1093, 3) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1093, 3) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (769, 5) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (769, 5) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1111, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1111, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 1091) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 1091) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1105, 1) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1105, 1) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1090, 768) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1090, 768) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (24, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (24, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1108, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1108, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (767, 1107) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (767, 1107) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (778, 14) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (778, 14) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1110, 10) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1110, 10) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (775, 774) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (775, 774) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1113, 1115) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1113, 1115) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 771) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 771) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 1118) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 1118) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 773) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 773) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 1096) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 1096) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1112, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1112, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1, 767) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1, 767) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3, 770) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3, 770) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1101, 1090) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1101, 1090) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1098, 1093) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1098, 1093) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (768, 1114) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (768, 1114) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1095, 1105) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1095, 1105) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1107, 1108) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1107, 1108) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1109, 1094) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1109, 1094) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1096, 769) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1096, 769) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (21, 1097) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (21, 1097) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1099, 24) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1099, 24) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1117, 1103) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1117, 1103) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1092, 778) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1092, 778) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1102, 776) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1102, 776) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1118, 1112) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1118, 1112) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (771, 18) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (771, 18) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (774, 1106) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (774, 1106) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1115, 775) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1115, 775) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (14, 1110) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (14, 1110) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (773, 1116) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (773, 1116) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (1091, 1113) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (1091, 1113) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (10124, 4160) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (10124, 4160) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3874, 586) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3874, 586) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (347, 339) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (347, 339) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (347, 350) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (347, 350) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3491, 3484) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3491, 3484) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (6962, 345) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (6962, 345) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (340, 343) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (340, 343) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (339, 349) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (339, 349) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (4248, 348) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (4248, 348) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (343, 347) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (343, 347) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (349, 340) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (349, 340) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (348, 14562) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (348, 14562) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (569, 742) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (569, 742) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (336, 6962) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (336, 6962) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (346, 339) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (346, 339) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (588, 679) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (588, 679) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (3484, 345) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (3484, 345) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (345, 346) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (345, 346) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (347, 340) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (347, 340) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div><div id="error"><p class="wpdberror"><strong>WordPress database error:</strong> [SELECT command denied to user &#039;btpage&#039;@&#039;localhost&#039; for table `testroom`.`zt_stats_team_leagues`]<br /><code>SELECT l.league_id, l.type, COUNT(t.team_id) AS team_count 
		FROM zt_stats_teams AS t 
		INNER JOIN testroom.zt_stats_team_leagues AS tl ON tl.team_id = t.team_id 
		INNER JOIN zt_stats_leagues AS l ON l.league_id = tl.league_id 
		INNER JOIN testroom.zt_stats_seasons AS s ON s.league_id = tl.league_id AND s.year = tl.season AND s.current = 1 
		INNER JOIN testroom.zt_stats_standings AS st ON st.league_id = tl.league_id AND st.team_id IN (6962, 3484) AND st.season = s.year
		WHERE l.league_id NOT IN (10, 15, 22, 32, 34, 38, 480, 743, 100011) AND t.team_id IN (6962, 3484) 
		  AND ((l.hidden != 1 AND l.type NOT LIKE &#039;%cup%&#039;) || t.country = &#039;World&#039;)  
		GROUP BY l.league_id 
    HAVING (l.type LIKE &#039;%cup%&#039; AND team_count % 2 = 0) 
    OR (l.type = &#039;&#039; AND team_count % 4 = 0)
		ORDER BY l.type</code></p></div>
</urlset>