Whiskey Tango Foxtrot

Softball

mysqli_sql_exception Object
(
    [message:protected] => You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ORDER BY `date` ASC' at line 1
    [string:Exception:private] => 
    [code:protected] => 1064
    [file:protected] => /home/leaguejo_dev/public_html/classes/sql_class.php
    [line:protected] => 966
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /home/leaguejo_dev/public_html/classes/sql_class.php
                    [line] => 966
                    [function] => mysqli_query
                )

            [1] => Array
                (
                    [file] => /home/leaguejo_dev/public_html/classes/sql_class.php
                    [line] => 1014
                    [function] => iquery
                    [class] => sql
                    [type] => ->
                )

            [2] => Array
                (
                    [file] => /home/leaguejo_dev/public_html/modules/league/league_class.php
                    [line] => 10374
                    [function] => query
                    [class] => sql
                    [type] => ->
                )

            [3] => Array
                (
                    [file] => /home/leaguejo_dev/public_html/modules/league/league_class.php
                    [line] => 1229
                    [function] => displayLeagueRounds
                    [class] => league
                    [type] => ->
                )

            [4] => Array
                (
                    [file] => /home/leaguejo_dev/public_html/templates/lj/modules/teams/components/schedule.php
                    [line] => 10
                    [function] => showSchedule
                    [class] => league
                    [type] => ->
                )

            [5] => Array
                (
                    [file] => /home/leaguejo_dev/public_html/templates/lj/modules/teams/teammain.php
                    [line] => 68
                    [args] => Array
                        (
                            [0] => /home/leaguejo_dev/public_html/templates/lj/modules/teams/components/schedule.php
                        )

                    [function] => require_once
                )

            [6] => Array
                (
                    [file] => /home/leaguejo_dev/public_html/modules/teams/teams_class.php
                    [line] => 886
                    [args] => Array
                        (
                            [0] => /home/leaguejo_dev/public_html/templates/lj/modules/teams/teammain.php
                        )

                    [function] => include
                )

            [7] => Array
                (
                    [file] => /home/leaguejo_dev/public_html/modules/teams/teams.php
                    [line] => 19
                    [function] => display
                    [class] => teams
                    [type] => ->
                )

            [8] => Array
                (
                    [file] => /home/leaguejo_dev/public_html/classes/module_class.php
                    [line] => 30
                    [args] => Array
                        (
                            [0] => /home/leaguejo_dev/public_html/modules/teams/teams.php
                        )

                    [function] => include
                )

            [9] => Array
                (
                    [file] => /home/leaguejo_dev/public_html/classes/block_class.php
                    [line] => 125
                    [function] => blockdisplay
                    [class] => module
                    [type] => ->
                )

            [10] => Array
                (
                    [file] => /home/leaguejo_dev/public_html/templates/lj/default/index.php
                    [line] => 114
                    [function] => display
                    [class] => block
                    [type] => ->
                )

            [11] => Array
                (
                    [file] => /home/leaguejo_dev/public_html/classes/page_class.php
                    [line] => 139
                    [args] => Array
                        (
                            [0] => /home/leaguejo_dev/public_html/templates/lj/default/index.php
                        )

                    [function] => include
                )

            [12] => Array
                (
                    [file] => /home/leaguejo_dev/public_html/index.php
                    [line] => 236
                    [function] => display
                    [class] => page
                    [type] => ->
                )

        )

    [previous:Exception:private] => 
    [sqlstate:protected] => 42000
)

SELECT * FROM `league_seasons_holidays` WHERE `season_id`= ORDER BY `date` ASC
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ORDER BY `date` ASC' at line 1


Warning: Attempt to read property "num_rows" on null in /home/leaguejo_dev/public_html/modules/league/league_class.php on line 10375

Schedule

Week 1 (Pre-Season)
Monday - April 10, 2023

Time
Away
 
Home
Field
10:00pm
26  -  16
Field 5
8:00pm
6  -  10
Field 6

Week 2
Monday - April 17, 2023

Time
Away
 
Home
Field

Week 3
Monday - April 24, 2023

Time
Away
 
Home
Field
8:00pm
15  -  11
Field 3
10:00pm
12  -  17
Field 6

Week 4
Monday - May 01, 2023

Time
Away
 
Home
Field
9:00pm
RAIN
Field 5

Week 5
Monday - May 08, 2023

Time
Away
 
Home
Field
10:00pm
11  -  15
Field 4
8:00pm
12  -  20
Field 5

Week 6
Monday - May 15, 2023

Time
Away
 
Home
Field
9:00pm
18  -  14
Field 4
7:00pm
7  -  15
Field 6

Week 7
Monday - May 22, 2023

Time
Away
 
Home
Field
9:00pm
17  -  30
Field 3
7:00pm
21  -  10
Field 4

Week 8
Monday - May 29, 2023

Time
Away
 
Home
Field

Week 9
Monday - June 05, 2023

Time
Away
 
Home
Field
7:00pm
12  -  11
Field 3
9:00pm
0  -  7
Field 4

Week 10
Monday - June 12, 2023

Time
Away
 
Home
Field
10:00pm
23  -  17
Field 1
8:00pm
17  -  9
Field 2

Week 11
Rainout Makeup
Monday - June 19, 2023

Time
Away
 
Home
Field
7:00pm
15  -  9
Field 2
9:00pm
11  -  19
Field 3

Week 12
Rainout Makeup
Monday - June 26, 2023

Time
Away
 
Home
Field
8:00pm
10  -  11
Field 4
10:00pm
RAIN
Field 4

Week 13
Rainout Makeup
Monday - July 03, 2023

Time
Away
 
Home
Field
7:00pm
8  -  9
Field 1
9:00pm
5  -  8
Field 2

Week 14
Rainout Makeup
Monday - July 10, 2023

Time
Away
 
Home
Field
10:00pm
9  -  8
Field 1
8:00pm
16  -  9
Field 2
387
Array
(
    [team_id] => 387
    [sport_id] => 1
    [league_id] => 0
    [division_id] => 
    [wins] => 0
    [losses] => 0
    [wins_all] => 0
    [losses_all] => 0
    [fullname] => Whiskey Tango Foxtrot
    [shortname] => 
    [abbr] => 
    [fullmascot] => 
    [shortmascot] => 
    [url] => WTF
    [logo_id] => 2902
    [court_id] => 0
    [color_id] => 
    [max_roster_size] => 15
    [gallery_id] => 3164
    [approved] => 1
    [active] => 1
    [current_roster_size] => 12
    [owner_id] => 20
    [public] => 1
    [chat_room_id] => 0
    [personal] => 0
    [deleted] => 0
    [invite_code] => 
    [featured_bg] => 6542
    [color_id_2] => 
    [color_id_3] => 
    [description] => 
    [shirt_color] => 
    [jersey_img] => 0
    [jersey_img_away] => 0
    [city] => 
    [state] => 
    [created] => 2025-01-02 13:16:54
    [updated] => 0000-00-00 00:00:00
    [leagues] => LeagueJoe Draft League - Spring 2023
    [thumb] => /files/gallery/misc/thumbs/whiskey1_recjoe1680709997.jpg
    [large] => /files/gallery/misc/whiskey1_recjoe1680709997.jpg
    [alt] => League
    [name] => Whiskey Tango Foxtrot
    [sport_name] => Softball
    [sport_icon] => fa-regular fa-baseball-bat-ball
    [sport_url] => softball
    [gameimage] => 
    [roster] => 1
    [coaches] => 1
    [leaders] => 
    [group_type] => teams
    [link] => /team/WTF/
    [image] => Array
        (
            [id] => WTF
            [thumb] => /files/gallery/misc/thumbs/whiskey1_recjoe1680709997.jpg
            [large] => /files/gallery/misc/whiskey1_recjoe1680709997.jpg
            [alt] => League
            [link] => /team/WTF/
        )

    [label] => team
    [tools] => Array
        (
            [score] => 
            [homelink] => /team/WTF/
            [homelink_type] => teams
        )

    [featured_bg_img] => https://leaguejoe.com/files/gallery/misc/default-green_recjoe1704996203.webp
    [settings] => 
    [merch_settings] => 
    [perm_team_level] => 0
    [perm_team_name] => Guest
    [perm_team_score] => 0
    [score] => 0
    [games] => 28
    [sponsors] => 0
    [reports] => 10
)
PEAK MEMORY: 12.35 MiB
MEMORY USAGE AFTER: 9.46 MiB

Debug Information


Request Variables

var = team

varb = WTF

varc = schedule

vara =

vard =

vare =

Debug Messages

Site ID: 1

Sub Domain:

Domain: netstuffersdev1.com

Site name: LeagueJoe2

Template: lj

SECURETOKEN: 8c059b8563d0d4b95dee2c132a39e81d

Login Type:

BASE:: team

FULL LINK:: team/WTF/schedule

Page ID: 49

Page ID:: 49

Page Template:: lj

Template Layout:: default

Headers: : Loading page header code

Active Blocks: Array ( [0] => [1] => 1 [2] => [3] => [4] => [5] => [6] => [7] => [8] => [9] => [10] => 1 [11] => [12] => [13] => [14] => [15] => )

Block Types: Array ( [0] => [1] => Array ( [0] => module ) [2] => [3] => [4] => [5] => [6] => [7] => [8] => [9] => [10] => Array ( [0] => module ) [11] => [12] => [13] => [14] => [15] => )

Element ID: Array ( [0] => [1] => Array ( [0] => 5 ) [2] => [3] => [4] => [5] => [6] => [7] => [8] => [9] => [10] => Array ( [0] => 5 ) [11] => [12] => [13] => [14] => [15] => )

Admin Login Level: :

Admin Login Level: :

Footer: : Loading page footer code


Session Variables

securetoken = 8c059b8563d0d4b95dee2c132a39e81d
fullstate =


Cookie Variables

fikker-7LAf-ARgD = 5JIRaZk4GVMJGFIRcIitgvyRK6KLIVcV
care_did = e1a7c6cd-d2c2-442e-bb93-a3eb105a083e
laikanxia_google_v = 1
laikanxia_cookie_id = 250131224832713


Server Variables

USER = leaguejo_dev
HOME = /home/leaguejo_dev
SCRIPT_NAME = /index.php
REQUEST_URI = /team/WTF/schedule/
QUERY_STRING = var=team&varb=WTF&varc=schedule
REQUEST_METHOD = GET
SERVER_PROTOCOL = HTTP/1.1
GATEWAY_INTERFACE = CGI/1.1
REDIRECT_QUERY_STRING = var=team&varb=WTF&varc=schedule
REDIRECT_URL = /team/WTF/schedule/
REMOTE_PORT = 44305
SCRIPT_FILENAME = /home/leaguejo_dev/public_html/index.php
SERVER_ADMIN = support@aod.net
CONTEXT_DOCUMENT_ROOT = /home/leaguejo_dev/public_html
CONTEXT_PREFIX =
REQUEST_SCHEME = https
DOCUMENT_ROOT = /home/leaguejo_dev/public_html
REMOTE_ADDR = 52.14.26.141
SERVER_PORT = 443
SERVER_ADDR = 162.248.190.150
SERVER_NAME = netstuffersdev1.com
SERVER_SOFTWARE = Apache
SERVER_SIGNATURE =
PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
HTTP_HOST = netstuffersdev1.com
HTTP_REFERER = https://netstuffersdev1.com/team/WTF/schedule
HTTP_ACCEPT_ENCODING = gzip, br, zstd, deflate
HTTP_COOKIE = fikker-7LAf-ARgD=5JIRaZk4GVMJGFIRcIitgvyRK6KLIVcV; care_did=e1a7c6cd-d2c2-442e-bb93-a3eb105a083e; laikanxia_google_v=1; laikanxia_cookie_id=250131224832713
HTTP_USER_AGENT = Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_ACCEPT = */*
proxy-nokeepalive = 1
SSL_TLS_SNI = netstuffersdev1.com
HTTPS = on
SCRIPT_URI = https://netstuffersdev1.com/team/WTF/schedule/
SCRIPT_URL = /team/WTF/schedule/
UNIQUE_ID = Z5zjFOOCdYtJELjcIz83QQAAAQk
REDIRECT_STATUS = 200
REDIRECT_SSL_TLS_SNI = netstuffersdev1.com
REDIRECT_HTTPS = on
REDIRECT_SCRIPT_URI = https://netstuffersdev1.com/team/WTF/schedule/
REDIRECT_SCRIPT_URL = /team/WTF/schedule/
REDIRECT_UNIQUE_ID = Z5zjFOOCdYtJELjcIz83QQAAAQk
FCGI_ROLE = RESPONDER
PHP_SELF = /index.php
REQUEST_TIME_FLOAT = 1738334996.1985
REQUEST_TIME = 1738334996


SQL Queries


Total Queries: 186
Total Execution Time: 33.7458ms
Avg Execution Time:0.18142903225806ms

QUERY(0.9911ms) - INSERT INTO security_log (domain,username, log_date, log_time, method, page, ip, address, browser, getvars, postvars, sessionvars,badlogin,userlogin,timestamp) VALUES ('.netstuffersdev1.com','','2025-01-31', '14:49:56', 'GET', '/team/WTF/schedule/', '52.14.26.141', 'https://netstuffersdev1.com/team/WTF/schedule' ,'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)', '', '','OXoxRVZMVjQ4WTB4djhqV3ZoeDVtblpoN1hrL0hkTEp1M0toVlNEamZheTFVeGdTaVNGcytuWnJwaDF4bkRwWC9tT3U5L2xJYUsyZmVJNnR3dWkzNlFOUTN3c24xYVpFTGhyUFlQdGhLYms2ZWNsMy9paWdMdWJpV0ZYUmQwQys=','0','','1738334996') ON DUPLICATE KEY UPDATE `ip`=`ip`

QUERY(0.4458ms) - SELECT SQL_CACHE `end_timestamp` FROM `security_locks` WHERE ((`who`='52.14.26.141' && `which`='IP'))

QUERY(0.092ms) - SELECT SQL_CACHE dest FROM redirects WHERE source = '/team/WTF/schedule/'

QUERY(0.1228ms) - SELECT SQL_CACHE `id`,`layout`,`name`,`pagedisplay` FROM pages WHERE `pagedisplay`='team/WTF/schedule' ORDER BY `domain`='1' DESC,`domain` ASC

QUERY(0.1459ms) - SELECT SQL_CACHE `id`,`layout`,`light`,`name`,`pagedisplay` FROM pages WHERE `pagedisplay`='team' ORDER BY `domain`='1' DESC,`domain` ASC

QUERY(0.1009ms) - SELECT SQL_CACHE `id`,`layout`,`name`,`pagedisplay`,`customize` FROM `pages` WHERE `id`='49'

QUERY(0.097ms) - SELECT COUNT(*),version FROM modules WHERE `codename`='userprofiles'

QUERY(0.134ms) - SELECT * FROM userprofiles_config

QUERY(0.114ms) - SELECT SQL_CACHE `name` FROM `states` WHERE `abbr`='' LIMIT 0,1

QUERY(0.133ms) - SELECT SQL_CACHE title,metakeys,metadescript,seomodule,seotitlefield,seodescfield,seotitletable,seodesctable,urllinkfield FROM pages WHERE `id`='49' && `domain`='1'

QUERY(0.1009ms) - SELECT COUNT(*),version FROM modules WHERE `codename`='teams'

QUERY(0.1469ms) - SELECT SQL_CACHE * FROM teams_config

QUERY(0.3738ms) - SELECT COUNT(*) FROM `teams` LEFT JOIN `photo` ON (`teams`.`logo_id` = `photo`.`photo_id`) LEFT JOIN `leagues` ON (`teams`.`league_id` = `leagues`.`league_id`) LEFT JOIN `teams_players` ON (`teams`.`team_id` = `teams_players`.`team_id`) LEFT JOIN `sports` ON (`teams`.`sport_id` = `sports`.`sport_id`) LEFT JOIN `photo` AS `gamephoto` ON (`sports`.`logo_id` = `gamephoto`.`photo_id`) INNER JOIN `teams_privacy` ON (`teams`.`team_id` = `teams_privacy`.`team_id`) WHERE `teams`.`url` = 'WTF'

QUERY(0.545ms) - SELECT SQL_CACHE `teams`.*,(SELECT COUNT(`team_id`) FROM `league_teams` WHERE `league_teams`.`team_id`=`teams`.`team_id`) AS `leagues`,`photo`.`thumb_url` AS `thumb`,`photo`.`img_url` AS `large`,`photo`.`title` AS `alt`,`leagues`.`name`,`teams_players`.`player_id`,`sports`.`name` AS `sport_name`,`sports`.`icon` AS `sport_icon`,`sports`.`name_url` AS `sport_url`,`gamephoto`.`img_url` AS `gameimage`,`teams_privacy`.`public`,`teams_privacy`.`roster` FROM `teams` LEFT JOIN `photo` ON (`teams`.`logo_id` = `photo`.`photo_id`) LEFT JOIN `leagues` ON (`teams`.`league_id` = `leagues`.`league_id`) LEFT JOIN `teams_players` ON (`teams`.`team_id` = `teams_players`.`team_id`) LEFT JOIN `sports` ON (`teams`.`sport_id` = `sports`.`sport_id`) LEFT JOIN `photo` AS `gamephoto` ON (`sports`.`logo_id` = `gamephoto`.`photo_id`) INNER JOIN `teams_privacy` ON (`teams`.`team_id` = `teams_privacy`.`team_id`) WHERE `teams`.`url` = 'WTF' GROUP BY `teams`.`team_id`

QUERY(0.33ms) - SELECT SQL_CACHE tp.access,u.username,u.user_url,tl.name AS level FROM `teams_players` tp INNER JOIN `users` u ON tp.player_id=u.id INNER JOIN `teams_levels` tl ON tp.access=tl.level_id INNER JOIN `teams_levels` ON tp.`access`=`teams_levels`.`level_id` WHERE tp.`team_id`='387' && `teams_levels`.`score`>=40 GROUP BY u.id

QUERY(0.2141ms) - SELECT SQL_CACHE `leagues`.`tournament`,`leagues`.`name`,`leagues`.`url`,`league_seasons`.`url` AS `season_url`,`league_seasons`.`name` AS `season_name` FROM `league_teams` INNER JOIN `leagues` ON `league_teams`.`league_id`=`leagues`.`league_id` INNER JOIN `league_seasons` ON `league_teams`.`season_id`=`league_seasons`.`season_id` WHERE `team_id`='387' GROUP BY `league_teams`.`team_id` LIMIT 0,3

QUERY(0.1411ms) - SELECT `team_id`, `league_id` FROM `league_teams` WHERE `league_id` = 0 AND `season_id` = 0 AND `team_id` = 387 LIMIT 1

QUERY(0.102ms) - SELECT SQL_CACHE `img_url` FROM `photo` WHERE `photo_id`=6542 LIMIT 0,1

QUERY(0.0961ms) - SELECT * FROM `teams_settings` WHERE `team_id`=387

QUERY(0.1051ms) - SELECT * FROM `teams_merch_settings` WHERE `team_id`=387

QUERY(0.104ms) - SELECT SQL_CACHE * FROM `teams_cache` WHERE `team_id`=387 && `updated`>=(NOW() - INTERVAL 60 MINUTE) LIMIT 0,1

QUERY(0.102ms) - SELECT * FROM `teams_merch_settings` WHERE `team_id`=387 LIMIT 0,1

QUERY(0.3231ms) - SELECT COUNT(`game_id`) FROM `games` WHERE (`home_team_id`=387||`away_team_id`=387) && `cancelled`=0

QUERY(0.102ms) - SELECT COUNT(`sponsor_id`) FROM `teams_sponsors` WHERE `team_id`=387

QUERY(1.1919ms) - SELECT COUNT(`player_id`) FROM `teams_players_scouting_reports` WHERE `team_id`=387

QUERY(0.093ms) - INSERT INTO `teams_cache` (`team_id`,`products`,`sponsors`,`reports`) VALUES ('387',0,0,10) ON DUPLICATE KEY UPDATE `team_id`='387',`products`=0,`sponsors`=0,`reports`=10

QUERY(0.1369ms) - SELECT SQL_CACHE `code` FROM `page_headers` WHERE (`domain`=1||domain_global=1) && (`include` LIKE '%:49:%' || (`global`=1 && `exclude` NOT LIKE '%:49:%') ) ORDER BY `sort` ASC

QUERY(0.0968ms) - SELECT `offset` FROM `zone` WHERE `zone_name`='UTC'

QUERY(0.1261ms) - SELECT count(`league_id`) FROM `league_players` WHERE `player_id`=''

QUERY(0.1221ms) - SELECT SQL_CACHE `block_id`,`element_id`,`function_id`,`type` FROM `blocks` WHERE `page_id`='49' ORDER BY `order` ASC

QUERY(0.1481ms) - SELECT `abbr`,`name` FROM `states` WHERE `active`=1 ORDER BY `name` ASC

QUERY(0.0758ms) - select SQL_CACHE codename,classname,scriptname from modules WHERE `id`='5'

QUERY(0.1109ms) - SELECT COUNT(*),version FROM modules WHERE `codename`='teams'

QUERY(0.107ms) - SELECT SQL_CACHE * FROM teams_config

QUERY(0.0861ms) - SELECT COUNT(*),version FROM modules WHERE `codename`='teams'

QUERY(0.0749ms) - SELECT SQL_CACHE * FROM teams_config

QUERY(0.097ms) - SELECT COUNT(*),version FROM modules WHERE `codename`='league'

QUERY(0.103ms) - SELECT SQL_CACHE * FROM league_config

QUERY(0.0918ms) - SELECT COUNT(*),version FROM modules WHERE `codename`='userprofiles'

QUERY(0.102ms) - SELECT * FROM userprofiles_config

QUERY(0.1092ms) - SELECT COUNT(*),version FROM modules WHERE `codename`='draft'

QUERY(0.0811ms) - SELECT SQL_CACHE * FROM draft_config

QUERY(0.2978ms) - SELECT COUNT(*) FROM `teams` LEFT JOIN `photo` ON (`teams`.`logo_id` = `photo`.`photo_id`) LEFT JOIN `leagues` ON (`teams`.`league_id` = `leagues`.`league_id`) LEFT JOIN `teams_players` ON (`teams`.`team_id` = `teams_players`.`team_id`) LEFT JOIN `sports` ON (`teams`.`sport_id` = `sports`.`sport_id`) LEFT JOIN `photo` AS `gamephoto` ON (`sports`.`logo_id` = `gamephoto`.`photo_id`) INNER JOIN `teams_privacy` ON (`teams`.`team_id` = `teams_privacy`.`team_id`) WHERE `teams`.`url` = 'WTF'

QUERY(0.412ms) - SELECT SQL_CACHE `teams`.*,(SELECT COUNT(`team_id`) FROM `league_teams` WHERE `league_teams`.`team_id`=`teams`.`team_id`) AS `leagues`,`photo`.`thumb_url` AS `thumb`,`photo`.`img_url` AS `large`,`photo`.`title` AS `alt`,`leagues`.`name`,`teams_players`.`player_id`,`sports`.`name` AS `sport_name`,`sports`.`icon` AS `sport_icon`,`sports`.`name_url` AS `sport_url`,`gamephoto`.`img_url` AS `gameimage`,`teams_privacy`.`public`,`teams_privacy`.`roster` FROM `teams` LEFT JOIN `photo` ON (`teams`.`logo_id` = `photo`.`photo_id`) LEFT JOIN `leagues` ON (`teams`.`league_id` = `leagues`.`league_id`) LEFT JOIN `teams_players` ON (`teams`.`team_id` = `teams_players`.`team_id`) LEFT JOIN `sports` ON (`teams`.`sport_id` = `sports`.`sport_id`) LEFT JOIN `photo` AS `gamephoto` ON (`sports`.`logo_id` = `gamephoto`.`photo_id`) INNER JOIN `teams_privacy` ON (`teams`.`team_id` = `teams_privacy`.`team_id`) WHERE `teams`.`url` = 'WTF' GROUP BY `teams`.`team_id`

QUERY(0.253ms) - SELECT SQL_CACHE tp.access,u.username,u.user_url,tl.name AS level FROM `teams_players` tp INNER JOIN `users` u ON tp.player_id=u.id INNER JOIN `teams_levels` tl ON tp.access=tl.level_id INNER JOIN `teams_levels` ON tp.`access`=`teams_levels`.`level_id` WHERE tp.`team_id`='387' && `teams_levels`.`score`>=40 GROUP BY u.id

QUERY(0.2048ms) - SELECT SQL_CACHE `leagues`.`tournament`,`leagues`.`name`,`leagues`.`url`,`league_seasons`.`url` AS `season_url`,`league_seasons`.`name` AS `season_name` FROM `league_teams` INNER JOIN `leagues` ON `league_teams`.`league_id`=`leagues`.`league_id` INNER JOIN `league_seasons` ON `league_teams`.`season_id`=`league_seasons`.`season_id` WHERE `team_id`='387' GROUP BY `league_teams`.`team_id` LIMIT 0,3

QUERY(0.154ms) - SELECT `team_id`, `league_id` FROM `league_teams` WHERE `league_id` = 0 AND `season_id` = 0 AND `team_id` = 387 LIMIT 1

QUERY(0.0889ms) - SELECT SQL_CACHE `img_url` FROM `photo` WHERE `photo_id`=6542 LIMIT 0,1

QUERY(0.108ms) - SELECT * FROM `teams_settings` WHERE `team_id`=387

QUERY(0.1049ms) - SELECT * FROM `teams_merch_settings` WHERE `team_id`=387

QUERY(0.1118ms) - SELECT SQL_CACHE * FROM `teams_cache` WHERE `team_id`=387 && `updated`>=(NOW() - INTERVAL 60 MINUTE) LIMIT 0,1

QUERY(0.1121ms) - SELECT * FROM `teams_merch_settings` WHERE `team_id`=387 LIMIT 0,1

QUERY(0.206ms) - SELECT COUNT(`game_id`) FROM `games` WHERE (`home_team_id`=387||`away_team_id`=387) && `cancelled`=0

QUERY(0.109ms) - SELECT COUNT(`sponsor_id`) FROM `teams_sponsors` WHERE `team_id`=387

QUERY(0.7112ms) - SELECT COUNT(`player_id`) FROM `teams_players_scouting_reports` WHERE `team_id`=387

QUERY(0.0851ms) - INSERT INTO `teams_cache` (`team_id`,`products`,`sponsors`,`reports`) VALUES ('387',0,0,10) ON DUPLICATE KEY UPDATE `team_id`='387',`products`=0,`sponsors`=0,`reports`=10

QUERY(0.1161ms) - SELECT * FROM `teams_privacy` WHERE `team_id`=387

QUERY(0.109ms) - SELECT COUNT(*),version FROM modules WHERE `codename`='league'

QUERY(0.0811ms) - SELECT SQL_CACHE * FROM league_config

QUERY(0.1059ms) - SELECT `league_id`,`season_id` FROM `league_teams` WHERE `team_id`=387

QUERY(0.267ms) - SELECT SQL_CACHE `leagues`.*,`sports`.`name` AS `sport_name`,`sports`.`icon` AS `sport_icon`,`sports`.`name_url` AS `sport_url`,`photo`.`img_url`,`photo`.`photo_id` AS `league_logo_id`,`photo`.`thumb_url`,`venues`.`name` AS `venue`,`venues`.`city`,`venues`.`state`,(SELECT COUNT(*) FROM `league_teams` WHERE `league_id`=`leagues`.`league_id`) AS `teams` FROM `leagues` INNER JOIN `sports` ON (`leagues`.`sport_id` = `sports`.`sport_id`) LEFT JOIN `photo` ON (`leagues`.`logo_id` = `photo`.`photo_id`) LEFT JOIN `venues` ON (`leagues`.`venue_id` = `venues`.`venue_id`) WHERE `leagues`.`league_id` = '7' LIMIT 0,1

QUERY(0.1149ms) - SELECT SQL_CACHE `name`,`img_url` FROM `sports` INNER JOIN `photo` ON `sports`.`logo_id`=`photo`.`photo_id` WHERE `sport_id`=1

QUERY(0.247ms) - SELECT SQL_CACHE `league_seasons`.*,`league_seasons`.`url` AS season_url,`photo`.`img_url`,`photo`.`thumb_url`,`venues`.`name` AS `venue`,`venues`.`city`,`venues`.`state`,`league_dates`.`reg_date`,`league_dates`.`reg_end_date`,`league_dates`.`start_date`,`league_dates`.`end_date`,`league_dates`.`draft_date`,`league_dates`.`manual_date_display` FROM `league_seasons` LEFT JOIN `photo` ON (`league_seasons`.`logo_id` = `photo`.`photo_id`) LEFT JOIN `venues` ON (`league_seasons`.`venue_id` = `venues`.`venue_id`) LEFT JOIN `league_dates` ON (`league_seasons`.`season_id` = `league_dates`.`season_id`) WHERE `league_seasons`.`league_id` = '7' and `league_seasons`.`season_id` = '102' ORDER BY `league_dates`.`start_date` ASC

QUERY(0.087ms) - SELECT SQL_CACHE `name`,`img_url` FROM `sports` INNER JOIN `photo` ON `sports`.`logo_id`=`photo`.`photo_id` WHERE `sport_id`=1

QUERY(0.1099ms) - SELECT COUNT(order_id) FROM products_purchased WHERE season_id=102

QUERY(0.098ms) - SELECT SQL_CACHE `zone_name` FROM `zone` WHERE `zone_id`=970 LIMIT 0,1

QUERY(0.0949ms) - SELECT `photographers`,`payment_terms`,`payment_type`,`package_pricing`,`min_deposit`,`total_pay_required` FROM `league_custom_content` WHERE `league_id`=7 && `season_id`=102 LIMIT 0,1

QUERY(0.0889ms) - SELECT SQL_CACHE `allow_couples`,`disable_standings`,`type`,`groups`,`group_size`,`divisions`,`schedule_type`,`allow_alts`,`show_schedule_level` FROM `league_schedule_options` WHERE `league_id`=7 && `season_id`=102 LIMIT 0,1

QUERY(0.1431ms) - SELECT SQL_CACHE * FROM `league_cache` WHERE `league_id`=7 && `season_id`=102 && `updated`>=(NOW() - INTERVAL 30 MINUTE)

QUERY(0.1519ms) - SELECT SQL_CACHE * FROM `league_schedule_options` WHERE `league_id`='7' && `season_id`='102' LIMIT 0,1

QUERY(0.113ms) - SELECT SQL_CACHE count(`company_id`) FROM `league_company_links` WHERE `league_id`='7' && (`season_id`='102' || `season_id`=0)

QUERY(0.134ms) - SELECT SQL_CACHE count(`update_id`) FROM `league_updates` WHERE `league_id`='7' && (`season_id`='102' || `season_id`=0)

QUERY(0.113ms) - SELECT SQL_CACHE count(`conference_id`) FROM `league_conferences` WHERE (`league_id`=7 && `season_id`=0) || `season_id`='102'

QUERY(0.6349ms) - SELECT SQL_CACHE count(`league_players_id`) FROM `league_players` INNER JOIN `league_levels` ON `league_players`.`access`=`league_levels`.`level_id` WHERE `league_id`='7' && `season_id`='102' &&`league_levels`.`score`>2 && `deleted`=0 && `alternate`=0

QUERY(0.5898ms) - SELECT SQL_CACHE count(`league_players_id`) FROM `league_players` INNER JOIN `league_levels` ON `league_players`.`access`=`league_levels`.`level_id` WHERE `league_id`='7' && `season_id`='102' && (`league_players`.`paid`=1||`league_players`.`moretime`=1) &&`league_levels`.`score`>2 && `deleted`=0 && `alternate`=0

QUERY(0.4518ms) - SELECT SQL_CACHE count(`league_players_id`) FROM `league_players` INNER JOIN `league_levels` ON `league_players`.`access`=`league_levels`.`level_id` WHERE `league_id`='7' && `season_id`='102' && `league_players`.`paid`=0 && `league_players`.`moretime`=1 &&`league_levels`.`score`>2 && `deleted`=0 && `alternate`=0

QUERY(0.3471ms) - SELECT SQL_CACHE count(`league_players_id`) FROM `league_players` INNER JOIN `league_levels` ON `league_players`.`access`=`league_levels`.`level_id` WHERE `league_id`='7' && `season_id`='102' && `league_players`.`paid`=1 && `league_levels`.`score`>2 && `deleted`=0 && `alternate`=0

QUERY(0.2298ms) - SELECT SQL_CACHE count(DISTINCT(`league_players`.`player_id`)) FROM `league_players` INNER JOIN `league_levels` ON `league_players`.`access`=`league_levels`.`level_id` WHERE `league_id`='7' && `season_id`='102' &&`league_players`.`access`=4 && `deleted`=0 && `alternate`=0

QUERY(0.278ms) - SELECT SQL_CACHE count(`league_players_id`) FROM `league_players` INNER JOIN `league_levels` ON `league_players`.`access`=`league_levels`.`level_id` WHERE `league_id`='7' && `season_id`='102' &&`league_levels`.`score`>2 && `quit`=0 && `alternate`=1

QUERY(0.15ms) - SELECT SQL_CACHE count(`season_id`) FROM `league_seasons_rules` WHERE `league_id`='7' || `season_id`='102' ORDER BY `season_id` DESC

QUERY(0.1001ms) - SELECT SQL_CACHE count(`sponsor_id`) FROM `league_sponsors` WHERE `league_id`='7' && `season_id`='102'

QUERY(0.109ms) - SELECT SQL_CACHE count(`product_id`) FROM `products` WHERE `season_id`='102'

QUERY(0.1371ms) - SELECT SQL_CACHE count(`season_id`) FROM `league_seasons` WHERE `league_id`='7'

QUERY(0.5639ms) - SELECT SQL_CACHE count(`season_id`) FROM `triumphs_awarded` WHERE `league_id`='7'

QUERY(0.1059ms) - SELECT SQL_CACHE `group_id` FROM `league_groups` WHERE `league_id`=7&&`season_id`=102 LIMIT 0,1

QUERY(0.4539ms) - SELECT `game_id` FROM `games` WHERE `league_id`=7&&`season_id`=102&&`playoff`=1 LIMIT 0,1

QUERY(0.1049ms) - SELECT `season_id` FROM `league_custom_content` WHERE `prizes` IS NOT NULL&&`season_id`=102 LIMIT 0,1

QUERY(0.211ms) - SELECT SQL_CACHE `league_teams`.`team_id` FROM `league_teams` INNER JOIN `teams` ON `league_teams`.`team_id`=`teams`.`team_id` WHERE `league_teams`.`league_id`='7' && `league_teams`.`season_id`='102' && `teams`.`personal`=0 && `teams`.`deleted`=0 GROUP BY `league_teams`.`team_id`

QUERY(0.3381ms) - SELECT SQL_CACHE count(`game_id`) FROM `games` WHERE `league_id`='7' && `season_id`='102'

QUERY(0.1068ms) - SELECT SQL_CACHE `leagues`.`max_players` AS `league_max`, `league_seasons`.`max_players` AS `season_max` FROM `leagues` INNER JOIN `league_seasons` ON `leagues`.`league_id`=`league_seasons`.`league_id` WHERE `leagues`.`league_id`='7' && `league_seasons`.`season_id`='102'

QUERY(0.083ms) - SELECT `allow_hotelpage` FROM `league_hotel_settings` WHERE `league_id`=7 && `season_id`=102 LIMIT 0,1

QUERY(0.0701ms) - SELECT allow_hotelpage FROM `league_hotel_settings` WHERE `league_id`=7 && `season_id`=102

QUERY(0.8121ms) - INSERT INTO `league_cache` (`league_id`,`season_id`,`articles`,`participants`,`conferences`,`registered`,`players`,`moretime`,`paid`,`coaches`,`subs`,`rules`,`teams`,`games`,`groups`,`divisions`,`seasons`,`sponsors`,`products`,`prizes`,`triumphs`,`hotels`,`is_full`,`companies`,`reg_is_open`,`updated`,`show_playoff_menu`) VALUES ('7','102','32',0,0,'95','81',0,0,'10','56','5','8','113',0,0,'25',0,'3','1','445',0,0,0,0,NOW(),0) ON DUPLICATE KEY UPDATE `league_id`='7',`season_id`='102',`articles`='32',`participants`=0,`conferences`=0,`registered`='95',`players`='81',`moretime`=0,`paid`=0,`coaches`='10',`subs`='56',`rules`='5',`teams`='8',`games`='113',`groups`=0,`divisions`=0,`seasons`='25',`sponsors`=0,`products`='3',`prizes`='1',`triumphs`='445',`hotels`=0,`is_full`=0,`companies`=0,`reg_is_open`=0,`updated`=NOW(),`show_playoff_menu`=0

QUERY(0.1519ms) - SELECT SQL_CACHE `enabled` FROM `league_merch` WHERE `season_id`=102 LIMIT 0,1

QUERY(0.1891ms) - SELECT count(player_id) AS `player`,`coach`,`access`,`team_player_id` AS `tpi` FROM `teams_players` WHERE `team_id`='387' && `player_id`='' && `quit`=0 ORDER BY `season_id` DESC

QUERY(0.0801ms) - select SQL_CACHE codename,classname,scriptname from modules WHERE `id`='5'

QUERY(0.083ms) - SELECT COUNT(*),version FROM modules WHERE `codename`='teams'

QUERY(0.071ms) - SELECT SQL_CACHE * FROM teams_config

QUERY(0.092ms) - SELECT COUNT(*),version FROM modules WHERE `codename`='teams'

QUERY(0.0801ms) - SELECT SQL_CACHE * FROM teams_config

QUERY(0.1059ms) - SELECT COUNT(*),version FROM modules WHERE `codename`='league'

QUERY(0.0682ms) - SELECT SQL_CACHE * FROM league_config

QUERY(0.087ms) - SELECT COUNT(*),version FROM modules WHERE `codename`='userprofiles'

QUERY(0.1049ms) - SELECT * FROM userprofiles_config

QUERY(0.1001ms) - SELECT COUNT(*),version FROM modules WHERE `codename`='draft'

QUERY(0.072ms) - SELECT SQL_CACHE * FROM draft_config

QUERY(0.0842ms) - SELECT * FROM `teams_privacy` WHERE `team_id`=387

QUERY(0.0839ms) - SELECT COUNT(*),version FROM modules WHERE `codename`='teams'

QUERY(0.0689ms) - SELECT SQL_CACHE * FROM teams_config

QUERY(0.0892ms) - SELECT COUNT(*),version FROM modules WHERE `codename`='games'

QUERY(0.083ms) - SELECT SQL_CACHE * FROM games_config

QUERY(0.0949ms) - SELECT COUNT(*),version FROM modules WHERE `codename`='draft'

QUERY(0.109ms) - SELECT SQL_CACHE * FROM draft_config

QUERY(0.8721ms) - SELECT SQL_CACHE `games_rounds`.`round_id`,`games_rounds`.`description`,`games_rounds`.`round`,`games_rounds`.`preseason`,`games_rounds`.`playoff`,`games_rounds`.`rainout`,`games_rounds`.`round_date`,`games_rounds`.`season_id`,`games_rounds`.`cancellation`,`games_rounds`.`event_id`,`games_rounds`.`position_round`,`games_rounds`.`venue_id` AS round_venue,`games`.`game_id`,`games`.`url`,`games`.`home_team_id`,`games`.`away_team_id`,`games`.`home_points`,`games`.`away_points`,`games`.`start_date`,`games`.`start_datetime`,`games`.`field`,`games`.`venue_id`,`games`.`scrimmage`,`games`.`conflict`,`games`.`sport_id`,`games`.`cancelled`,`games`.`forfeited`,`games`.`time`,`games`.`rainout` AS `game_rainout` FROM `games_rounds` LEFT JOIN `games` ON (`games_rounds`.`round_id` = `games`.`round_id`) WHERE (`games`.`home_team_id` = '387' or `games`.`away_team_id` = '387') ORDER BY `games_rounds`.`round_date` asc,`games`.`time` asc,`games`.`field` asc,`games`.`start_datetime` asc

QUERY(0.0992ms) - SELECT COUNT(*),version FROM modules WHERE `codename`='teams'

QUERY(0.0992ms) - SELECT SQL_CACHE * FROM teams_config

QUERY(0.082ms) - SELECT COUNT(*),version FROM modules WHERE `codename`='league'

QUERY(0.0999ms) - SELECT SQL_CACHE * FROM league_config

QUERY(0.1099ms) - SELECT COUNT(*),version FROM modules WHERE `codename`='events'

QUERY(0.078ms) - SELECT SQL_CACHE * FROM events_config

QUERY(0.092ms) - SELECT * FROM `league_seasons_holidays` WHERE `season_id`= ORDER BY `date` ASC

QUERY(0.68ms) - SELECT SQL_CACHE `teams`.`url`,`teams`.`team_id`,`teams`.`fullname`,`teams`.`personal`,(SELECT `player_id` FROM `teams_players` WHERE `team_id`=`teams`.`team_id` && `access`=4 LIMIT 0,1) AS `coach_id`,(SELECT SUM(`s`.`wins`+`s`.`losses`+`s`.`ties`) as `gamesplayed` FROM `standings` AS `s` WHERE `s`.`team_id`=`standings`.`team_id`) AS `gamesplayed`,`standings`.`wins`,`standings`.`losses`,`standings`.`ties`,`standings`.`games_back`,`standings`.`points_for`,`standings`.`points_against`,`standings`.`streak`,`users`.`user_url`,`users`.`username`,`photo`.`thumb_url`,`league_groups_teams`.`group_id` FROM `teams` LEFT JOIN `standings` ON (`teams`.`team_id` = `standings`.`team_id`) LEFT JOIN `users` ON (`teams`.`owner_id` = `users`.`id`) LEFT JOIN `photo` ON (`teams`.`logo_id` = `photo`.`photo_id`) LEFT JOIN `league_groups_teams` ON (`teams`.`team_id` = `league_groups_teams`.`team_id`) WHERE `teams`.`team_id` = '387' ORDER BY `standings`.`wins` desc,`standings`.`ties` desc,`gamesplayed` desc,`standings`.`points_for` desc,`standings`.`points_against` asc

QUERY(0.6611ms) - SELECT SQL_CACHE `teams`.`url`,`teams`.`team_id`,`teams`.`fullname`,`teams`.`personal`,(SELECT `player_id` FROM `teams_players` WHERE `team_id`=`teams`.`team_id` && `access`=4 LIMIT 0,1) AS `coach_id`,(SELECT SUM(`s`.`wins`+`s`.`losses`+`s`.`ties`) as `gamesplayed` FROM `standings` AS `s` WHERE `s`.`team_id`=`standings`.`team_id`) AS `gamesplayed`,`standings`.`wins`,`standings`.`losses`,`standings`.`ties`,`standings`.`games_back`,`standings`.`points_for`,`standings`.`points_against`,`standings`.`streak`,`users`.`user_url`,`users`.`username`,`photo`.`thumb_url`,`league_groups_teams`.`group_id` FROM `teams` LEFT JOIN `standings` ON (`teams`.`team_id` = `standings`.`team_id`) LEFT JOIN `users` ON (`teams`.`owner_id` = `users`.`id`) LEFT JOIN `photo` ON (`teams`.`logo_id` = `photo`.`photo_id`) LEFT JOIN `league_groups_teams` ON (`teams`.`team_id` = `league_groups_teams`.`team_id`) WHERE `teams`.`team_id` = '384' ORDER BY `standings`.`wins` desc,`standings`.`ties` desc,`gamesplayed` desc,`standings`.`points_for` desc,`standings`.`points_against` asc

QUERY(0.103ms) - SELECT COUNT(*),version FROM modules WHERE `codename`='games'

QUERY(0.0708ms) - SELECT SQL_CACHE * FROM games_config

QUERY(0.6721ms) - SELECT SQL_CACHE `teams`.`url`,`teams`.`team_id`,`teams`.`fullname`,`teams`.`personal`,(SELECT `player_id` FROM `teams_players` WHERE `team_id`=`teams`.`team_id` && `access`=4 LIMIT 0,1) AS `coach_id`,(SELECT SUM(`s`.`wins`+`s`.`losses`+`s`.`ties`) as `gamesplayed` FROM `standings` AS `s` WHERE `s`.`team_id`=`standings`.`team_id`) AS `gamesplayed`,`standings`.`wins`,`standings`.`losses`,`standings`.`ties`,`standings`.`games_back`,`standings`.`points_for`,`standings`.`points_against`,`standings`.`streak`,`users`.`user_url`,`users`.`username`,`photo`.`thumb_url`,`league_groups_teams`.`group_id` FROM `teams` LEFT JOIN `standings` ON (`teams`.`team_id` = `standings`.`team_id`) LEFT JOIN `users` ON (`teams`.`owner_id` = `users`.`id`) LEFT JOIN `photo` ON (`teams`.`logo_id` = `photo`.`photo_id`) LEFT JOIN `league_groups_teams` ON (`teams`.`team_id` = `league_groups_teams`.`team_id`) WHERE `teams`.`team_id` = '383' ORDER BY `standings`.`wins` desc,`standings`.`ties` desc,`gamesplayed` desc,`standings`.`points_for` desc,`standings`.`points_against` asc

QUERY(0.082ms) - SELECT COUNT(*),version FROM modules WHERE `codename`='games'

QUERY(0.083ms) - SELECT SQL_CACHE * FROM games_config

QUERY(0.6421ms) - SELECT SQL_CACHE `teams`.`url`,`teams`.`team_id`,`teams`.`fullname`,`teams`.`personal`,(SELECT `player_id` FROM `teams_players` WHERE `team_id`=`teams`.`team_id` && `access`=4 LIMIT 0,1) AS `coach_id`,(SELECT SUM(`s`.`wins`+`s`.`losses`+`s`.`ties`) as `gamesplayed` FROM `standings` AS `s` WHERE `s`.`team_id`=`standings`.`team_id`) AS `gamesplayed`,`standings`.`wins`,`standings`.`losses`,`standings`.`ties`,`standings`.`games_back`,`standings`.`points_for`,`standings`.`points_against`,`standings`.`streak`,`users`.`user_url`,`users`.`username`,`photo`.`thumb_url`,`league_groups_teams`.`group_id` FROM `teams` LEFT JOIN `standings` ON (`teams`.`team_id` = `standings`.`team_id`) LEFT JOIN `users` ON (`teams`.`owner_id` = `users`.`id`) LEFT JOIN `photo` ON (`teams`.`logo_id` = `photo`.`photo_id`) LEFT JOIN `league_groups_teams` ON (`teams`.`team_id` = `league_groups_teams`.`team_id`) WHERE `teams`.`team_id` = '389' ORDER BY `standings`.`wins` desc,`standings`.`ties` desc,`gamesplayed` desc,`standings`.`points_for` desc,`standings`.`points_against` asc

QUERY(0.1061ms) - SELECT COUNT(*),version FROM modules WHERE `codename`='games'

QUERY(0.078ms) - SELECT SQL_CACHE * FROM games_config

QUERY(0.6578ms) - SELECT SQL_CACHE `teams`.`url`,`teams`.`team_id`,`teams`.`fullname`,`teams`.`personal`,(SELECT `player_id` FROM `teams_players` WHERE `team_id`=`teams`.`team_id` && `access`=4 LIMIT 0,1) AS `coach_id`,(SELECT SUM(`s`.`wins`+`s`.`losses`+`s`.`ties`) as `gamesplayed` FROM `standings` AS `s` WHERE `s`.`team_id`=`standings`.`team_id`) AS `gamesplayed`,`standings`.`wins`,`standings`.`losses`,`standings`.`ties`,`standings`.`games_back`,`standings`.`points_for`,`standings`.`points_against`,`standings`.`streak`,`users`.`user_url`,`users`.`username`,`photo`.`thumb_url`,`league_groups_teams`.`group_id` FROM `teams` LEFT JOIN `standings` ON (`teams`.`team_id` = `standings`.`team_id`) LEFT JOIN `users` ON (`teams`.`owner_id` = `users`.`id`) LEFT JOIN `photo` ON (`teams`.`logo_id` = `photo`.`photo_id`) LEFT JOIN `league_groups_teams` ON (`teams`.`team_id` = `league_groups_teams`.`team_id`) WHERE `teams`.`team_id` = '390' ORDER BY `standings`.`wins` desc,`standings`.`ties` desc,`gamesplayed` desc,`standings`.`points_for` desc,`standings`.`points_against` asc

QUERY(0.0989ms) - SELECT COUNT(*),version FROM modules WHERE `codename`='games'

QUERY(0.0629ms) - SELECT SQL_CACHE * FROM games_config

QUERY(0.8211ms) - SELECT SQL_CACHE `teams`.`url`,`teams`.`team_id`,`teams`.`fullname`,`teams`.`personal`,(SELECT `player_id` FROM `teams_players` WHERE `team_id`=`teams`.`team_id` && `access`=4 LIMIT 0,1) AS `coach_id`,(SELECT SUM(`s`.`wins`+`s`.`losses`+`s`.`ties`) as `gamesplayed` FROM `standings` AS `s` WHERE `s`.`team_id`=`standings`.`team_id`) AS `gamesplayed`,`standings`.`wins`,`standings`.`losses`,`standings`.`ties`,`standings`.`games_back`,`standings`.`points_for`,`standings`.`points_against`,`standings`.`streak`,`users`.`user_url`,`users`.`username`,`photo`.`thumb_url`,`league_groups_teams`.`group_id` FROM `teams` LEFT JOIN `standings` ON (`teams`.`team_id` = `standings`.`team_id`) LEFT JOIN `users` ON (`teams`.`owner_id` = `users`.`id`) LEFT JOIN `photo` ON (`teams`.`logo_id` = `photo`.`photo_id`) LEFT JOIN `league_groups_teams` ON (`teams`.`team_id` = `league_groups_teams`.`team_id`) WHERE `teams`.`team_id` = '386' ORDER BY `standings`.`wins` desc,`standings`.`ties` desc,`gamesplayed` desc,`standings`.`points_for` desc,`standings`.`points_against` asc

QUERY(0.093ms) - SELECT COUNT(*),version FROM modules WHERE `codename`='games'

QUERY(0.0598ms) - SELECT SQL_CACHE * FROM games_config

QUERY(1.0631ms) - SELECT SQL_CACHE `teams`.`url`,`teams`.`team_id`,`teams`.`fullname`,`teams`.`personal`,(SELECT `player_id` FROM `teams_players` WHERE `team_id`=`teams`.`team_id` && `access`=4 LIMIT 0,1) AS `coach_id`,(SELECT SUM(`s`.`wins`+`s`.`losses`+`s`.`ties`) as `gamesplayed` FROM `standings` AS `s` WHERE `s`.`team_id`=`standings`.`team_id`) AS `gamesplayed`,`standings`.`wins`,`standings`.`losses`,`standings`.`ties`,`standings`.`games_back`,`standings`.`points_for`,`standings`.`points_against`,`standings`.`streak`,`users`.`user_url`,`users`.`username`,`photo`.`thumb_url`,`league_groups_teams`.`group_id` FROM `teams` LEFT JOIN `standings` ON (`teams`.`team_id` = `standings`.`team_id`) LEFT JOIN `users` ON (`teams`.`owner_id` = `users`.`id`) LEFT JOIN `photo` ON (`teams`.`logo_id` = `photo`.`photo_id`) LEFT JOIN `league_groups_teams` ON (`teams`.`team_id` = `league_groups_teams`.`team_id`) WHERE `teams`.`team_id` = '388' ORDER BY `standings`.`wins` desc,`standings`.`ties` desc,`gamesplayed` desc,`standings`.`points_for` desc,`standings`.`points_against` asc

QUERY(0.078ms) - SELECT COUNT(*),version FROM modules WHERE `codename`='games'

QUERY(0.0792ms) - SELECT SQL_CACHE * FROM games_config

QUERY(0.741ms) - SELECT SQL_CACHE `teams`.`url`,`teams`.`team_id`,`teams`.`fullname`,`teams`.`personal`,(SELECT `player_id` FROM `teams_players` WHERE `team_id`=`teams`.`team_id` && `access`=4 LIMIT 0,1) AS `coach_id`,(SELECT SUM(`s`.`wins`+`s`.`losses`+`s`.`ties`) as `gamesplayed` FROM `standings` AS `s` WHERE `s`.`team_id`=`standings`.`team_id`) AS `gamesplayed`,`standings`.`wins`,`standings`.`losses`,`standings`.`ties`,`standings`.`games_back`,`standings`.`points_for`,`standings`.`points_against`,`standings`.`streak`,`users`.`user_url`,`users`.`username`,`photo`.`thumb_url`,`league_groups_teams`.`group_id` FROM `teams` LEFT JOIN `standings` ON (`teams`.`team_id` = `standings`.`team_id`) LEFT JOIN `users` ON (`teams`.`owner_id` = `users`.`id`) LEFT JOIN `photo` ON (`teams`.`logo_id` = `photo`.`photo_id`) LEFT JOIN `league_groups_teams` ON (`teams`.`team_id` = `league_groups_teams`.`team_id`) WHERE `teams`.`team_id` = '385' ORDER BY `standings`.`wins` desc,`standings`.`ties` desc,`gamesplayed` desc,`standings`.`points_for` desc,`standings`.`points_against` asc

QUERY(0.088ms) - SELECT COUNT(*),version FROM modules WHERE `codename`='games'

QUERY(0.0849ms) - SELECT SQL_CACHE * FROM games_config

QUERY(0.0992ms) - SELECT COUNT(*),version FROM modules WHERE `codename`='games'

QUERY(0.077ms) - SELECT SQL_CACHE * FROM games_config

QUERY(0.0949ms) - SELECT COUNT(*),version FROM modules WHERE `codename`='games'

QUERY(0.0761ms) - SELECT SQL_CACHE * FROM games_config

QUERY(0.098ms) - SELECT COUNT(*),version FROM modules WHERE `codename`='games'

QUERY(0.087ms) - SELECT SQL_CACHE * FROM games_config

QUERY(0.113ms) - SELECT COUNT(*),version FROM modules WHERE `codename`='games'

QUERY(0.066ms) - SELECT SQL_CACHE * FROM games_config

QUERY(0.083ms) - SELECT COUNT(*),version FROM modules WHERE `codename`='games'

QUERY(0.0889ms) - SELECT SQL_CACHE * FROM games_config

QUERY(0.092ms) - SELECT COUNT(*),version FROM modules WHERE `codename`='games'

QUERY(0.073ms) - SELECT SQL_CACHE * FROM games_config

QUERY(0.0949ms) - SELECT COUNT(*),version FROM modules WHERE `codename`='games'

QUERY(0.0629ms) - SELECT SQL_CACHE * FROM games_config

QUERY(0.0989ms) - SELECT COUNT(*),version FROM modules WHERE `codename`='games'

QUERY(0.0801ms) - SELECT SQL_CACHE * FROM games_config

QUERY(0.118ms) - SELECT COUNT(*),version FROM modules WHERE `codename`='games'

QUERY(0.0951ms) - SELECT SQL_CACHE * FROM games_config

QUERY(0.0858ms) - SELECT COUNT(*),version FROM modules WHERE `codename`='games'

QUERY(0.0658ms) - SELECT SQL_CACHE * FROM games_config

QUERY(0.34ms) - SELECT COUNT(*),version FROM modules WHERE `codename`='games'

QUERY(0.073ms) - SELECT SQL_CACHE * FROM games_config

QUERY(0.1049ms) - SELECT COUNT(*),version FROM modules WHERE `codename`='games'

QUERY(0.0651ms) - SELECT SQL_CACHE * FROM games_config

QUERY(0.0839ms) - SELECT COUNT(*),version FROM modules WHERE `codename`='games'

QUERY(0.0739ms) - SELECT SQL_CACHE * FROM games_config

QUERY(0.1171ms) - SELECT COUNT(*),version FROM modules WHERE `codename`='games'

QUERY(0.0732ms) - SELECT SQL_CACHE * FROM games_config

QUERY(0.0851ms) - SELECT COUNT(*),version FROM modules WHERE `codename`='games'

QUERY(0.0741ms) - SELECT SQL_CACHE * FROM games_config

QUERY(0.0789ms) - SELECT COUNT(*),version FROM modules WHERE `codename`='games'

QUERY(0.1352ms) - SELECT SQL_CACHE * FROM games_config

QUERY(0.082ms) - SELECT COUNT(*),version FROM modules WHERE `codename`='games'

QUERY(0.0811ms) - SELECT SQL_CACHE * FROM games_config

QUERY(0.0789ms) - SELECT COUNT(*),version FROM modules WHERE `codename`='games'

QUERY(0.0689ms) - SELECT SQL_CACHE * FROM games_config

QUERY(0.1321ms) - SELECT COUNT(*),version FROM modules WHERE `codename`='games'

QUERY(0.0739ms) - SELECT SQL_CACHE * FROM games_config

QUERY(0.0899ms) - SELECT COUNT(*),version FROM modules WHERE `codename`='games'

QUERY(0.0648ms) - SELECT SQL_CACHE * FROM games_config

QUERY(0.0808ms) - SELECT COUNT(*),version FROM modules WHERE `codename`='games'

QUERY(0.0999ms) - SELECT SQL_CACHE * FROM games_config

QUERY(0.176ms) - SELECT SQL_CACHE `code`,`name` FROM `page_footers` WHERE (`domain`=1||domain_global=1) && (`include` LIKE '%:49:%' || (`global`=1 && `exclude` NOT LIKE '%:49:%') ) ORDER BY `sort` ASC