Baseic Pitches

Softball

LeagueJoe Draft League
Spring 2016

Spring 2016

Team Roster

Player

Hitting
Slugging
Outfield Defense
Infield Defense
Speed
Arm Strength
Kevinalcox
| 1B, 2B, 3B

B
B
C+
B
C
B
Lmcochran
| OF, 2B

C
C+
B
B
B
A
shaicee
| 2B, 1B

B
C
C
A
C
B
dubbgfx
| 1B, 2B

A
A
B
A
C
A
tkoehlman13
| OF, SS

B
B
C+
B
B
C

B
C
B
B
A
A
bluebarracudas
| OF, 1B
Coach

B
A
A
A
A
A

C+
C+
A
B
A
A
Vega16
| 2B, 3B

C+
C
D
B
C
B
    71
    Array
    (
        [team_id] => 71
        [sport_id] => 1
        [league_id] => 0
        [division_id] => 
        [wins] => 0
        [losses] => 0
        [wins_all] => 0
        [losses_all] => 0
        [fullname] => Baseic Pitches
        [shortname] => Baseic Pitches
        [abbr] => 
        [fullmascot] => 
        [shortmascot] => 
        [url] => baesic-pitches
        [logo_id] => 277
        [court_id] => 0
        [color_id] => 0
        [max_roster_size] => 15
        [gallery_id] => 192
        [approved] => 1
        [active] => 0
        [current_roster_size] => 12
        [owner_id] => 71
        [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
        [leagues] => 1
        [thumb] => /files/gallery/misc/thumbs/basicpitches_recjoe1459162560.jpg
        [large] => /files/gallery/misc/basicpitches_recjoe1459162560.jpg
        [alt] => Baesic Pitches  Logo
        [name] => Baseic Pitches
        [sport_name] => Softball
        [sport_icon] => fa-regular fa-baseball-bat-ball
        [sport_url] => softball
        [gameimage] => 
        [roster] => 1
        [earnings] => -
        [group_type] => teams
        [teamorg] => 
        [link] => /team/baesic-pitches/
        [image] => Array
            (
                [id] => baesic-pitches
                [thumb] => /files/gallery/misc/thumbs/basicpitches_recjoe1459162560.jpg
                [large] => /files/gallery/misc/basicpitches_recjoe1459162560.jpg
                [alt] => Baesic Pitches  Logo
                [link] => /team/baesic-pitches/
            )
    
        [label] => team
        [game] => All Games
        [tools] => Array
            (
                [score] => 
                [homelink] => /team/baesic-pitches/
                [homelink_type] => teams
            )
    
        [featured_bg_img] => https://leaguejoe.com/files/gallery/misc/default-green_recjoe1704996203.webp
        [settings] => 
        [perm_team_level] => 0
        [perm_team_name] => Guest
        [perm_team_score] => 0
        [score] => 0
        [games] => 25
        [sponsors] => 0
        [reports] => 9
    )
    
    PEAK MEMORY: 2.83 MiB
    MEMORY USAGE AFTER: 2.11 MiB

    Debug Information


    Request Variables

    var = team

    varb = baesic-pitches

    vara =

    varc =

    vard =

    vare =

    Debug Messages

    Site ID: 1

    Sub Domain:

    Domain: netstuffersdev1.com

    Site name: LeagueJoe

    Template: lj

    SECURETOKEN: 42098f8ba28f0ccafa2eb6c170288b56

    Login Type:

    BASE:: team

    FULL LINK:: team/baesic-pitches

    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 )

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

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

    Admin Login Level: :

    Admin Login Level: :

    USER CACHE: User cache reset

    Footer: : Loading page footer code


    Session Variables

    securetoken = 42098f8ba28f0ccafa2eb6c170288b56
    fullstate =


    Cookie Variables

    fikker-61vm-nk2N = MgPGRI6oXLV7DSLWJk4y6wNi63F1ZE0E


    Server Variables

    USER = leaguejo_dev
    HOME = /home/leaguejo_dev
    SCRIPT_NAME = /index.php
    REQUEST_URI = /team/baesic-pitches/
    QUERY_STRING = var=team&varb=baesic-pitches
    REQUEST_METHOD = GET
    SERVER_PROTOCOL = HTTP/1.1
    GATEWAY_INTERFACE = CGI/1.1
    REDIRECT_QUERY_STRING = var=team&varb=baesic-pitches
    REDIRECT_URL = /team/baesic-pitches/
    REMOTE_PORT = 26243
    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 = 3.149.229.53
    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/baesic-pitches
    HTTP_ACCEPT_ENCODING = gzip, br, zstd, deflate
    HTTP_COOKIE = fikker-61vm-nk2N=MgPGRI6oXLV7DSLWJk4y6wNi63F1ZE0E
    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/baesic-pitches/
    SCRIPT_URL = /team/baesic-pitches/
    UNIQUE_ID = ZzWBD4kxELEFnraSU9IysgAAAUY
    REDIRECT_STATUS = 200
    REDIRECT_SSL_TLS_SNI = netstuffersdev1.com
    REDIRECT_HTTPS = on
    REDIRECT_SCRIPT_URI = https://netstuffersdev1.com/team/baesic-pitches/
    REDIRECT_SCRIPT_URL = /team/baesic-pitches/
    REDIRECT_UNIQUE_ID = ZzWBD4kxELEFnraSU9IysgAAAUY
    FCGI_ROLE = RESPONDER
    PHP_SELF = /index.php
    REQUEST_TIME_FLOAT = 1731559695.2669
    REQUEST_TIME = 1731559695


    SQL Queries


    Total Queries: 159
    Total Execution Time: 56.3201ms
    Avg Execution Time:0.35421446540881ms

    QUERY(0.9091ms) - INSERT INTO security_log (domain,username, log_date, log_time, method, page, ip, address, browser, getvars, postvars, sessionvars,badlogin,userlogin,timestamp) VALUES ('.netstuffersdev1.com','','2024-11-14', '04:48:15', 'GET', '/team/baesic-pitches/', '3.149.229.53', 'https://netstuffersdev1.com/team/baesic-pitches' ,'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)', '', '','OXoxRVZMVjQ4WTB4djhqV3ZoeDVtblpoN1hrL0hkTEp1M0toVlNEamZhd0I5R3dIMkVZOE0xaWJzb3hqTUFhb3VCT3AvMlFoMVQreEhmdi83bHNNV0R1OXdKUDVmc0V2M3VGOHErNGhaK3hBcWtKU0VVTzVvNTBhSHJ3RnMvcEM=','0','','1731559695') ON DUPLICATE KEY UPDATE `ip`=`ip`

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

    QUERY(0.1609ms) - SELECT SQL_CACHE dest FROM redirects WHERE source = '/team/baesic-pitches/'

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

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

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

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

    QUERY(0.145ms) - SELECT * FROM userprofiles_config

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

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

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

    QUERY(0.114ms) - SELECT SQL_CACHE * FROM teams_config

    QUERY(0.442ms) - 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` = 'baesic-pitches'

    QUERY(0.6909ms) - 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` = 'baesic-pitches' GROUP BY `teams`.`team_id`

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

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

    QUERY(0.2251ms) - SELECT COUNT(`player_id`) FROM `teams_players` WHERE `team_id`=71 && quit=0

    QUERY(0.124ms) - SELECT * FROM `teams_settings` WHERE `team_id`=71

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

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

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

    QUERY(0.144ms) - SELECT COUNT(`sponsor_id`) FROM `teams_sponsors` WHERE `team_id`=71

    QUERY(2.0759ms) - SELECT COUNT(`player_id`) FROM `teams_players_scouting_reports` WHERE `team_id`=71

    QUERY(0.133ms) - INSERT INTO `teams_cache` (`team_id`,`products`,`sponsors`,`reports`) VALUES ('71',0,0,9) ON DUPLICATE KEY UPDATE `team_id`='71',`products`=0,`sponsors`=0,`reports`=9

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

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

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

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

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

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

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

    QUERY(0.1121ms) - SELECT SQL_CACHE * FROM teams_config

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

    QUERY(0.1042ms) - SELECT SQL_CACHE * FROM teams_config

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

    QUERY(0.212ms) - SELECT SQL_CACHE * FROM league_config

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

    QUERY(0.149ms) - SELECT * FROM userprofiles_config

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

    QUERY(0.1049ms) - SELECT SQL_CACHE * FROM draft_config

    QUERY(0.386ms) - 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` = 'baesic-pitches'

    QUERY(0.7062ms) - 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` = 'baesic-pitches' GROUP BY `teams`.`team_id`

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

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

    QUERY(0.221ms) - SELECT COUNT(`player_id`) FROM `teams_players` WHERE `team_id`=71 && quit=0

    QUERY(0.1221ms) - SELECT * FROM `teams_settings` WHERE `team_id`=71

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

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

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

    QUERY(0.1731ms) - SELECT COUNT(`sponsor_id`) FROM `teams_sponsors` WHERE `team_id`=71

    QUERY(2.079ms) - SELECT COUNT(`player_id`) FROM `teams_players_scouting_reports` WHERE `team_id`=71

    QUERY(0.1202ms) - INSERT INTO `teams_cache` (`team_id`,`products`,`sponsors`,`reports`) VALUES ('71',0,0,9) ON DUPLICATE KEY UPDATE `team_id`='71',`products`=0,`sponsors`=0,`reports`=9

    QUERY(0.1378ms) - SELECT `season_id` FROM `league_teams` WHERE `team_id`=71

    QUERY(0.1259ms) - SELECT `league_id` FROM `league_seasons` WHERE `season_id`=22 LIMIT 0,1

    QUERY(0.52ms) - 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`,`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.1371ms) - SELECT SQL_CACHE `name`,`img_url` FROM `sports` INNER JOIN `photo` ON `sports`.`logo_id`=`photo`.`photo_id` WHERE `sport_id`=1

    QUERY(0.52ms) - SELECT SQL_CACHE `league_seasons`.*,`league_seasons`.`url` AS season_url,`photo`.`img_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` = '22' ORDER BY `league_dates`.`start_date` ASC

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

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

    QUERY(0.1502ms) - 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`=22 LIMIT 0,1

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

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

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

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

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

    QUERY(0.596ms) - 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`='22' &&`league_levels`.`score`>2 && `deleted`=0 && `alternate`=0

    QUERY(0.392ms) - 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`='22' &&`league_players`.`access`=4 && `deleted`=0 && `alternate`=0

    QUERY(0.4811ms) - 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`='22' &&`league_levels`.`score`>2 && `quit`=0 && `alternate`=1

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

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

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

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

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

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

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

    QUERY(0.4821ms) - 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`='22' && `teams`.`personal`=0 && `teams`.`deleted`=0 GROUP BY `league_teams`.`team_id`

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

    QUERY(0.2019ms) - 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`='22'

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

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

    QUERY(0.9861ms) - INSERT INTO `league_cache` (`league_id`,`season_id`,`articles`,`participants`,`conferences`,`players`,`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','22','30',0,0,'81',0,'4','5','8','100',0,0,'25',0,0,0,0,0,0,0,0,NOW(),'1') ON DUPLICATE KEY UPDATE `league_id`='7',`season_id`='22',`articles`='30',`participants`=0,`conferences`=0,`players`='81',`coaches`=0,`subs`='4',`rules`='5',`teams`='8',`games`='100',`groups`=0,`divisions`=0,`seasons`='25',`sponsors`=0,`products`=0,`prizes`=0,`triumphs`=0,`hotels`=0,`is_full`=0,`companies`=0,`reg_is_open`=0,`updated`=NOW(),`show_playoff_menu`='1'

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

    QUERY(0.1271ms) - SELECT * FROM `teams_privacy` WHERE `team_id`=71

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

    QUERY(0.1321ms) - SELECT SQL_CACHE * FROM league_config

    QUERY(0.1411ms) - SELECT `league_id`,`season_id` FROM `league_teams` WHERE `team_id`=71

    QUERY(0.526ms) - 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`,`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.1528ms) - SELECT SQL_CACHE `name`,`img_url` FROM `sports` INNER JOIN `photo` ON `sports`.`logo_id`=`photo`.`photo_id` WHERE `sport_id`=1

    QUERY(0.5181ms) - SELECT SQL_CACHE `league_seasons`.*,`league_seasons`.`url` AS season_url,`photo`.`img_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` = '22' ORDER BY `league_dates`.`start_date` ASC

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

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

    QUERY(0.1581ms) - 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`=22 LIMIT 0,1

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

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

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

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

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

    QUERY(0.1149ms) - SELECT SQL_CACHE * FROM teams_config

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

    QUERY(0.1309ms) - SELECT SQL_CACHE * FROM teams_config

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

    QUERY(0.113ms) - SELECT SQL_CACHE * FROM league_config

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

    QUERY(0.133ms) - SELECT * FROM userprofiles_config

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

    QUERY(0.109ms) - SELECT SQL_CACHE * FROM draft_config

    QUERY(0.1321ms) - SELECT * FROM `teams_privacy` WHERE `team_id`=71

    QUERY(0.1922ms) - SELECT * FROM `team_strength` WHERE `team_id`=71 && `season_id`=22

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

    QUERY(0.0961ms) - SELECT SQL_CACHE * FROM sports_config

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

    QUERY(0.119ms) - SELECT SQL_CACHE * FROM teams_config

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

    QUERY(0.113ms) - SELECT SQL_CACHE * FROM league_config

    QUERY(0.1738ms) - SELECT `position_id`,UPPER(`abbr`) AS `abbr` FROM `sports_positions` WHERE `sport_id`=1

    QUERY(0.128ms) - SELECT SQL_CACHE `competition_type` FROM `league_seasons` WHERE `league_id`='7' && `season_id`='22'

    QUERY(0.639ms) - SELECT SQL_CACHE `teams`.`url`,`teams`.`team_id`,`teams`.`fullname`,`teams`.`personal`,`teams`.`owner_id`,(SELECT `player_id` FROM `teams_players` WHERE `team_id`=`teams`.`team_id` && `access`=4 LIMIT 0,1) AS `coach_id`,`league_teams`.`league_teams_id`,`league_teams`.`league_id`,`league_teams`.`season_id`,`league_teams`.`ready`,`users`.`user_url`,`users`.`username`,`users`.`first_name`,`users`.`last_name`,`photo`.`thumb_url` FROM `teams` INNER JOIN `league_teams` ON (`teams`.`team_id` = `league_teams`.`team_id`) LEFT JOIN `users` ON (`teams`.`owner_id` = `users`.`id`) LEFT JOIN `photo` ON (`teams`.`logo_id` = `photo`.`photo_id`) WHERE `teams`.`approved` = '1' and `teams`.`active` = '1' and `league_teams`.`deleted` != '1' and `teams`.`personal` = '0' and `league_teams`.`league_id` = '7' and `league_teams`.`season_id` = '22' ORDER BY `teams`.`fullname` desc

    QUERY(3.4359ms) - SELECT SQL_CACHE `users`.`rookie`,`users`.`id`,`users`.`username`,`users`.`first_name`,`users`.`last_name`,`users`.`avatar_id`,`users`.`gender`,`users`.`user_url`,`users`.`level`,`users`.`confirmed`,`users`.`phone_number`,`users`.`email`,`users`.`approved`,`users`.`noemail`,`teams_players`.`player_id`,`teams_players`.`alternate`,`teams_players`.`coach`,`teams_players`.`paid`,`teams_players`.`couple`,`teams_players`.`couple_uname`,`teams_players`.`first_name` AS `manual_first_name`,`teams_players`.`last_name` AS `manual_last_name`,`teams_players`.`email` AS `manual_email`,`league_players`.`league_players_id`,`league_players`.`ready`,`league_players`.`season_id`,`league_players`.`created`,`league_players`.`package_id`,`league_players`.`closed`,`league_players`.`moretime`,`league_players`.`player_id`,`league_players`.`league_id`,`league_players`.`alternate`,`league_players`.`coach`,`league_players`.`paid`,`league_players`.`couple`,`league_players`.`couple_uname`,`league_players`.`access`,`league_players`.`nosalary`,(SELECT `value` FROM `user_attributes` WHERE `user_attributes`.`user_id`=`users`.`id` && `user_attributes`.`attribute_id`=1 LIMIT 0,1) AS `outfield`,(SELECT `value` FROM `user_attributes` WHERE `user_attributes`.`user_id`=`users`.`id` && `user_attributes`.`attribute_id`=2 LIMIT 0,1) AS `infield`,(SELECT `value` FROM `user_attributes` WHERE `user_attributes`.`user_id`=`users`.`id` && `user_attributes`.`attribute_id`=3 LIMIT 0,1) AS `speed`,(SELECT `value` FROM `user_attributes` WHERE `user_attributes`.`user_id`=`users`.`id` && `user_attributes`.`attribute_id`=4 LIMIT 0,1) AS `hitting`,(SELECT `value` FROM `user_attributes` WHERE `user_attributes`.`user_id`=`users`.`id` && `user_attributes`.`attribute_id`=5 LIMIT 0,1) AS `slugging`,(SELECT `value` FROM `user_attributes` WHERE `user_attributes`.`user_id`=`users`.`id` && `user_attributes`.`attribute_id`=7 LIMIT 0,1) AS `arm`,(SELECT `salary` FROM `draft_scouting_reports` WHERE `draft_scouting_reports`.`player_id`=`league_players`.`player_id` && `draft_scouting_reports`.`season_id`=`league_players`.`season_id` ORDER BY `lock` DESC LIMIT 0,1) AS `salary`,(SELECT `injury` FROM `sports_positions` INNER JOIN `sports_positions_link` ON `sports_positions`.`position_id`=`sports_positions_link`.`position_id` WHERE `sports_positions_link`.`user_id`=`users`.`id` && `sports_positions_link`.`primary`=1 && `sports_positions`.`sport_id`=1 ORDER BY `season_id`=22 DESC LIMIT 0,1) AS `injury`,(SELECT `abbr` FROM `sports_positions` INNER JOIN `sports_positions_link` ON `sports_positions`.`position_id`=`sports_positions_link`.`position_id` WHERE `sports_positions_link`.`user_id`=`users`.`id` && `sports_positions_link`.`primary`=1 && `sports_positions`.`sport_id`=1 ORDER BY `season_id`=22 DESC LIMIT 0,1) AS `primary`,(SELECT `abbr` FROM `sports_positions` INNER JOIN `sports_positions_link` ON `sports_positions`.`position_id`=`sports_positions_link`.`position_id` WHERE `sports_positions_link`.`user_id`=`users`.`id` && `sports_positions_link`.`primary`=2 && `sports_positions`.`sport_id`=1 ORDER BY `season_id`=22 DESC LIMIT 0,1) AS `secondary`,(SELECT `abbr` FROM `sports_positions` INNER JOIN `sports_positions_link` ON `sports_positions`.`position_id`=`sports_positions_link`.`position_id` WHERE `sports_positions_link`.`user_id`=`users`.`id` && `sports_positions_link`.`primary`=3 && `sports_positions`.`sport_id`=1 ORDER BY `season_id`=22 DESC LIMIT 0,1) AS `tertiary`,(SELECT `thumb_url` FROM `photo` WHERE `photo_id`=`users`.`avatar_id`) AS `avatar` FROM `users` INNER JOIN `teams_players` ON (`users`.`id` = `teams_players`.`player_id`) INNER JOIN `league_players` ON (`users`.`id` = `league_players`.`player_id`) WHERE `league_players`.`season_id` = '22' and `teams_players`.`team_id` = '71' and `teams_players`.`quit` = '0' ORDER BY `users`.`last_name` ASC LIMIT 0,500

    QUERY(0.2201ms) - SELECT * FROM `attribute` WHERE `sport_id`=1 ORDER BY `fieldorder` ASC

    QUERY(0.159ms) - SELECT `name`,`abbr` FROM `sports_positions` WHERE `sport_id`=1

    QUERY(0.3572ms) - SELECT `player_id` AS coach_id,`team_id`,`users`.`username`,`users`.`user_url`,`img_url` FROM `teams_players` INNER JOIN `users` ON `player_id`=`id` INNER JOIN `photo` ON `photo_id`=`avatar_id` WHERE `teams_players`.`team_id`=71 && (`coach`=1 || `access`=4 || `access`=5 || `access`=6) ORDER BY `access` DESC

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

    QUERY(0.124ms) - SELECT * FROM userprofiles_config

    QUERY(0.3562ms) - SELECT SQL_CACHE `users`.*,`cart_customers`.`customer_id` FROM `users` LEFT JOIN `users_profile` ON `users_profile`.`user_id`=`users`.`id` LEFT JOIN `cart_customers` ON `cart_customers`.`user_id`=`users`.`id` WHERE `users`.`user_url`='bluebarracudas' LIMIT 0,1

    QUERY(0.097ms) - SELECT `img_url`,`thumb_url` FROM `photo` WHERE `photo_id`=99

    QUERY(0.2301ms) - SELECT SQL_CACHE * FROM `userprofiles_cache` WHERE `user_id`=71 && `updated`>=(NOW() - INTERVAL 60 MINUTE)

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

    QUERY(0.1061ms) - SELECT SQL_CACHE * FROM league_config

    QUERY(0.912ms) - UPDATE users SET `lastip`='3.149.229.53' WHERE `id`=71

    QUERY(0.1872ms) - SELECT SQL_CACHE count(`awarded_id`) FROM `triumphs_awarded` WHERE `player_id`='71' LIMIT 0,1

    QUERY(0.1781ms) - SELECT SQL_CACHE count(`awarded_id`) FROM `triumphs_awarded` WHERE `player_id`='71' && `finish_rank`=1 LIMIT 0,1

    QUERY(0.205ms) - SELECT SQL_CACHE count(`awarded_id`) FROM `triumphs_awarded` WHERE `player_id`='71' && `finish_rank`=2 LIMIT 0,1

    QUERY(0.2251ms) - SELECT SQL_CACHE count(`teams`.`team_id`) FROM `teams` INNER JOIN `teams_players` ON `teams`.`team_id`=`teams_players`.`team_id` WHERE `teams_players`.`player_id`='71'

    QUERY(0.2229ms) - SELECT COUNT(`coach`) FROM `league_players` WHERE `player_id`=71 && (`coach`=1||`access`=4) && `deleted`=0 LIMIT 0,1

    QUERY(0.118ms) - SELECT `avatar_id` FROM `users` WHERE `id`=71

    QUERY(0.2079ms) - SELECT COUNT(`report_id`) FROM `teams_players_scouting_reports` WHERE `player_id`=71 && `public_text`!=''

    QUERY(0.325ms) - SELECT COUNT(`league_players_id`) FROM `league_players` INNER JOIN `league_seasons` ON `league_seasons`.`season_id`=`league_players`.`season_id` INNER JOIN `leagues` ON `leagues`.`league_id`=`league_seasons`.`league_id` && `leagues`.`tournament`=0 WHERE `player_id`=71 && `deleted`=0

    QUERY(0.329ms) - SELECT COUNT(`league_players_id`) FROM `league_players` INNER JOIN `league_seasons` ON `league_seasons`.`season_id`=`league_players`.`season_id` INNER JOIN `leagues` ON `leagues`.`league_id`=`league_seasons`.`league_id` && `leagues`.`ultra`=1 WHERE `player_id`=71 && `deleted`=0

    QUERY(5.5301ms) - SELECT AVG(`salary`) FROM `draft_scouting_reports` WHERE `player_id`=71

    QUERY(0.2601ms) - SELECT SUM(`points`) FROM `users_points` INNER JOIN `users_points_periods` ON `users_points`.`period_id`=`users_points_periods`.`id` WHERE `users_points_periods`.`active`=1 && `user_id`=71 && `spent`=0

    QUERY(0.2ms) - SELECT SUM(`amount`) FROM `users_balance` WHERE `user_id`=71 && `spent`=0

    QUERY(0.1452ms) - SELECT id FROM `users_overdue_balances` WHERE `player_id`=71 && `paid`=0

    QUERY(0.1459ms) - SELECT AVG(`score`) FROM `users_trust` WHERE `user_id`=71

    QUERY(0.1309ms) - SELECT COUNT(`user_id`) FROM `commish` WHERE `user_id`=71 && `active`=1

    QUERY(0.1521ms) - SELECT `event` FROM `email_errors` WHERE `receiver_id`=71 && `resolved`=0

    QUERY(0.113ms) - SELECT `birthdate` FROM `users` WHERE `id`=71

    QUERY(0.154ms) - SELECT value,text FROM userprofile_fields_initialvalues WHERE field_id = 4

    QUERY(7.2041ms) - SELECT fieldvalue FROM userprofile_profiledata WHERE field_id = '4' && user_id='71'

    QUERY(0.299ms) - SELECT `name_url`,`sports`.`name` FROM `sports` INNER JOIN `leagues` ON `sports`.`sport_id`=`leagues`.`sport_id` INNER JOIN `league_players` ON `leagues`.`league_id`=`league_players`.`league_id` && `league_players`.`player_id`=71 GROUP BY `sports`.`sport_id`

    QUERY(0.932ms) - INSERT INTO `userprofiles_cache` (`user_id`,`clan_recruiter`,`team_recruiter`,`totalinvites`,`totaloffers`,`age`,`report_id`,`highlights`,`articles`,`venues`,`accomplishments`,`classifieds`,`tracked`,`freeagents`,`groups`,`teams`,`completion`,`unread_offers`,`personal_team`,`reviews`,`coach`,`ships`,`silvers`,`sports`,`active_leagues`,`total_leagues`,`total_ultras`,`avg_salary`,`points_balance`,`cash_balance`,`trust`,`overdue`,`flags`,`commish`,`updated`) VALUES ('71',0,0,0,0,0,0,0,0,0,0,0,0,0,0,'4',0,0,0,0,'2',0,0,'Softball',0,'3',0,'11',0,0.5,0,0,'',0,NOW()) ON DUPLICATE KEY UPDATE `user_id`='71',`clan_recruiter`=0,`team_recruiter`=0,`totalinvites`=0,`totaloffers`=0,`age`=0,`report_id`=0,`highlights`=0,`articles`=0,`venues`=0,`accomplishments`=0,`classifieds`=0,`tracked`=0,`freeagents`=0,`groups`=0,`teams`='4',`completion`=0,`unread_offers`=0,`personal_team`=0,`reviews`=0,`coach`='2',`ships`=0,`silvers`=0,`sports`='Softball',`active_leagues`=0,`total_leagues`='3',`total_ultras`=0,`avg_salary`='11',`points_balance`=0,`cash_balance`=0.5,`trust`=0,`overdue`=0,`flags`='',`commish`=0,`updated`=NOW()

    QUERY(0.114ms) - SELECT `season_unfinished` FROM `userprofiles_cache` WHERE `user_id`=71

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

    QUERY(0.1001ms) - SELECT SQL_CACHE * FROM draft_config

    QUERY(0.2451ms) - SELECT * FROM `users_sizing` WHERE `user_id`=71 && (`sport_id`=1 || `sport_id`=0) && (`season_id`=22 || `season_id`=0) ORDER BY `season_id` DESC, `sport_id` DESC

    QUERY(0.3901ms) - SELECT SQL_CACHE `sports_positions_link`.`position_id`,`injury`,`name`,`name_url`,`abbr`,`locked` FROM `sports_positions_link` INNER JOIN `sports_positions` ON `sports_positions`.`position_id`=`sports_positions_link`.`position_id` WHERE `user_id`=71 && `sports_positions_link`.`sport_id`=1 && `primary`=1 && (`season_id`=22 || `season_id`=0) ORDER BY `season_id`=22 DESC LIMIT 0,1

    QUERY(0.35ms) - SELECT SQL_CACHE `sports_positions_link`.`position_id`,`injury`,`name`,`name_url`,`abbr`,`locked` FROM `sports_positions_link` INNER JOIN `sports_positions` ON `sports_positions`.`position_id`=`sports_positions_link`.`position_id` WHERE `user_id`=71 && `sports_positions_link`.`sport_id`=1 && `primary`=2 && (`season_id`=22 || `season_id`=0) ORDER BY `season_id`=22 DESC LIMIT 0,1

    QUERY(0.3169ms) - SELECT SQL_CACHE `sports_positions_link`.`position_id`,`injury`,`name`,`name_url`,`abbr`,`locked` FROM `sports_positions_link` INNER JOIN `sports_positions` ON `sports_positions`.`position_id`=`sports_positions_link`.`position_id` WHERE `user_id`=71 && `sports_positions_link`.`sport_id`=1 && `primary`=3 && (`season_id`=22 || `season_id`=0) ORDER BY `season_id`=22 DESC LIMIT 0,1

    QUERY(0.1369ms) - SELECT * FROM `photo` WHERE `photo_id`=0

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