This event has completed. This information has been preserved for archival purposes.
League

Beer and Besties Bowling

Season: Winter 2022 (Other Seasons)
Sport: Bowling
CoedSocialDraft
Event Director
Venue
Royal Pin Woodland Bowl
Indianapolis, IN
Day of the Week
MON
This event has completed. This information has been preserved for archival purposes.
Join as Alternate
53 94
PEAK MEMORY: 3.09 MiB
MEMORY USAGE AFTER: 1.62 MiB

Debug Information


Request Variables

var = league

varb = beer-and-besties-bowling-1635968414

varc = winter-2022-1663106236

vard = teams

vara =

vare =

view_var = league

view_varb = beer-and-besties-bowling-1635968414

view_varc = winter-2022-1663106236

view_vard = teams

view_vare =

view_varf =

view_varg =

Debug Messages

Site ID: 1

Sub Domain:

Domain: netstuffersdev1.com

Site name: LeagueJoe

Template: lj

SECURETOKEN: 433753d4adca11e5b4cde3ec6901bd74

Login Type:

BASE:: league

FULL LINK:: league/beer-and-besties-bowling-1635968414/winter-2022-1663106236/teams

Page ID: 27

Page ID:: 27

Page Template:: lj

Template Layout:: default

Headers: : Loading page header code

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

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

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

Admin Login Level: :

Footer: : Loading page footer code


Session Variables

securetoken = 433753d4adca11e5b4cde3ec6901bd74
fullstate =


Cookie Variables


Server Variables

USER = leaguejo_dev
HOME = /home/leaguejo_dev
SCRIPT_NAME = /index.php
REQUEST_URI = /league/beer-and-besties-bowling-1635968414/winter-2022-1663106236/teams/
QUERY_STRING = var=league&varb=beer-and-besties-bowling-1635968414&varc=winter-2022-1663106236&vard=teams
REQUEST_METHOD = GET
SERVER_PROTOCOL = HTTP/1.1
GATEWAY_INTERFACE = CGI/1.1
REDIRECT_QUERY_STRING = var=league&varb=beer-and-besties-bowling-1635968414&varc=winter-2022-1663106236&vard=teams
REDIRECT_URL = /league/beer-and-besties-bowling-1635968414/winter-2022-1663106236/teams/
REMOTE_PORT = 57720
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 = 18.119.141.115
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/league/beer-and-besties-bowling-1635968414/winter-2022-1663106236/teams
HTTP_ACCEPT_ENCODING = gzip, br, zstd, deflate
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/league/beer-and-besties-bowling-1635968414/winter-2022-1663106236/teams/
SCRIPT_URL = /league/beer-and-besties-bowling-1635968414/winter-2022-1663106236/teams/
UNIQUE_ID = Z0GNNwcqAYDOf1d@coAyCwAAAUs
REDIRECT_STATUS = 200
REDIRECT_SSL_TLS_SNI = netstuffersdev1.com
REDIRECT_HTTPS = on
REDIRECT_SCRIPT_URI = https://netstuffersdev1.com/league/beer-and-besties-bowling-1635968414/winter-2022-1663106236/teams/
REDIRECT_SCRIPT_URL = /league/beer-and-besties-bowling-1635968414/winter-2022-1663106236/teams/
REDIRECT_UNIQUE_ID = Z0GNNwcqAYDOf1d@coAyCwAAAUs
FCGI_ROLE = RESPONDER
PHP_SELF = /index.php
REQUEST_TIME_FLOAT = 1732349239.9933
REQUEST_TIME = 1732349239


SQL Queries


Total Queries: 81
Total Execution Time: 27.9334ms
Avg Execution Time:0.34485679012346ms

QUERY(1.6351ms) - 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-23', '08:07:19', 'GET', '/league/beer-and-besties-bowling-1635968414/winter-2022-1663106236/teams/', '18.119.141.115', 'https://netstuffersdev1.com/league/beer-and-besties-bowling-1635968414/winter-2022-1663106236/teams' ,'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)', '', '','OXoxRVZMVjQ4WTB4djhqV3ZoeDVtblpoN1hrL0hkTEp1M0toVlNEamZhelZxNWIxQXpoeVNoSGJZTUFKWlpsUFpyemtyYlJEcWoydTVBd1pBRDkwQ05mSEVhSHhXWVF3Q1IwMVVpUVZyek1sV2lBVFBaclR3UUljUTh2R1Q3NG0=','0','','1732349239') ON DUPLICATE KEY UPDATE `ip`=`ip`

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

QUERY(0.181ms) - SELECT SQL_CACHE dest FROM redirects WHERE source = '/league/beer-and-besties-bowling-1635968414/winter-2022-1663106236/teams/'

QUERY(0.257ms) - SELECT SQL_CACHE `id`,`layout`,`name`,`pagedisplay` FROM pages WHERE `pagedisplay`='league/beer-and-besties-bowling-1635968414/winter-2022-1663106236/teams' ORDER BY `domain`='1' DESC,`domain` ASC

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

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

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

QUERY(0.144ms) - SELECT * FROM userprofiles_config

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

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

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

QUERY(0.1228ms) - SELECT SQL_CACHE * FROM league_config

QUERY(0.577ms) - 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`.`url` = 'beer-and-besties-bowling-1635968414' LIMIT 0,1

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

QUERY(0.5441ms) - 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` = '53' and `league_seasons`.`url` = 'winter-2022-1663106236' ORDER BY `league_dates`.`start_date` ASC

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

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

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

QUERY(0.1791ms) - 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`=53 && `season_id`=94 LIMIT 0,1

QUERY(0.2151ms) - SELECT SQL_CACHE * FROM `league_cache` WHERE `league_id`=53 && `season_id`=94 && `updated`>=(NOW() - INTERVAL 30 MINUTE)

QUERY(0.2279ms) - SELECT SQL_CACHE * FROM `league_schedule_options` WHERE `league_id`='53' && `season_id`='94' LIMIT 0,1

QUERY(0.186ms) - SELECT SQL_CACHE count(`company_id`) FROM `league_company_links` WHERE `league_id`='53' && (`season_id`='94' || `season_id`=0)

QUERY(0.231ms) - SELECT SQL_CACHE count(`update_id`) FROM `league_updates` WHERE `league_id`='53' && (`season_id`='94' || `season_id`=0)

QUERY(0.17ms) - SELECT SQL_CACHE count(`conference_id`) FROM `league_conferences` WHERE (`league_id`=53 && `season_id`=0) || `season_id`='94'

QUERY(1.1079ms) - 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`='53' && `season_id`='94' &&`league_levels`.`score`>2 && `deleted`=0 && `alternate`=0

QUERY(0.428ms) - 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`='53' && `season_id`='94' &&`league_players`.`access`=4 && `deleted`=0 && `alternate`=0

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

QUERY(0.2379ms) - SELECT SQL_CACHE count(`season_id`) FROM `league_seasons_rules` WHERE `league_id`='53' || `season_id`='94' ORDER BY `season_id` DESC

QUERY(0.1509ms) - SELECT SQL_CACHE count(`sponsor_id`) FROM `league_sponsors` WHERE `league_id`='53' && `season_id`='94'

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

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

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

QUERY(0.186ms) - SELECT SQL_CACHE `group_id` FROM `league_groups` WHERE `league_id`=53&&`season_id`=94 LIMIT 0,1

QUERY(0.227ms) - SELECT `game_id` FROM `games` WHERE `league_id`=53&&`season_id`=94&&`playoff`=1 LIMIT 0,1

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

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

QUERY(0.212ms) - SELECT SQL_CACHE count(`game_id`) FROM `games` WHERE `league_id`='53' && `season_id`='94'

QUERY(0.1969ms) - 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`='53' && `league_seasons`.`season_id`='94'

QUERY(0.1261ms) - SELECT `allow_hotelpage` FROM `league_hotel_settings` WHERE `league_id`=53 && `season_id`=94 LIMIT 0,1

QUERY(0.1142ms) - SELECT allow_hotelpage FROM `league_hotel_settings` WHERE `league_id`=53 && `season_id`=94

QUERY(1.101ms) - 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 ('53','94','4',0,0,'75','3','6','1','18',0,0,0,'3',0,0,0,0,0,0,0,0,NOW(),0) ON DUPLICATE KEY UPDATE `league_id`='53',`season_id`='94',`articles`='4',`participants`=0,`conferences`=0,`players`='75',`coaches`='3',`subs`='6',`rules`='1',`teams`='18',`games`=0,`groups`=0,`divisions`=0,`seasons`='3',`sponsors`=0,`products`=0,`prizes`=0,`triumphs`=0,`hotels`=0,`is_full`=0,`companies`=0,`reg_is_open`=0,`updated`=NOW(),`show_playoff_menu`=0

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

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

QUERY(0.144ms) - SELECT `offset` FROM `zone` WHERE `zone_name`='America/Indianapolis'

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

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

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

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

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

QUERY(0.1261ms) - SELECT SQL_CACHE * FROM league_config

QUERY(0.2141ms) - SELECT `company`.*,`img_url` FROM `company` INNER JOIN `photo` ON `photo`.`photo_id`=`company`.`logo_onwhite` WHERE `company_id`=1

QUERY(0.138ms) - SELECT `sport_id` FROM `sports` WHERE `name_url`='beer-and-besties-bowling-1635968414'

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

QUERY(0.123ms) - SELECT SQL_CACHE * FROM league_config

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

QUERY(0.1171ms) - SELECT SQL_CACHE * FROM league_config

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

QUERY(0.1209ms) - SELECT SQL_CACHE * FROM teams_config

QUERY(0.1299ms) - SELECT `hall_of_fame` FROM `league_schedule_options` WHERE `league_id`='53' && `season_id`='94' LIMIT 0,1

QUERY(0.1271ms) - SELECT * FROM `league_notices` WHERE `league_id`=53 && `season_id`=94

QUERY(0.2599ms) - SELECT SQL_CACHE `standings_id` FROM `standings` WHERE `season_id`=94 LIMIT 0,1

QUERY(0.129ms) - SELECT SQL_CACHE `standings_override` FROM `league_schedule_options` WHERE `season_id`=94 LIMIT 0,1

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

QUERY(0.1101ms) - SELECT SQL_CACHE * FROM league_config

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

QUERY(0.1099ms) - SELECT SQL_CACHE * FROM teams_config

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

QUERY(0.124ms) - SELECT SQL_CACHE * FROM draft_config

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

QUERY(0.138ms) - SELECT SQL_CACHE * FROM teams_config

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

QUERY(0.123ms) - SELECT SQL_CACHE * FROM draft_config

QUERY(2.039ms) - SELECT SQL_CACHE `teams`.`team_id`,`teams`.`fullname`,`teams`.`fullmascot`,`teams`.`logo_id`,`teams`.`wins_all`,`teams`.`losses_all`,`teams`.`league_id`,`teams`.`owner_id`,`teams`.`url`,(SELECT count(`game_id`) FROM `games` WHERE `scrimmage`=0 && `league_id`=53 && `season_id`=94 && ((`home_team_id`=`teams`.`team_id` && `home_points`>`away_points`) || (`away_team_id`=`teams`.`team_id` && `away_points`>`home_points`))) AS `wins`,(SELECT count(`game_id`) FROM `games` WHERE `scrimmage`=0 && `league_id`=53 && `season_id`=94 && ((`home_team_id`=`teams`.`team_id` && `home_points`<`away_points`) || (`away_team_id`=`teams`.`team_id` && `away_points`<`home_points`))) AS `losses`,(SELECT count(`game_id`) FROM `games` WHERE `scrimmage`=0 && `league_id`=53 && `season_id`=94 && ((`home_team_id`=`teams`.`team_id` && `home_points`=`away_points`) || (`away_team_id`=`teams`.`team_id` && `away_points`=`home_points`)) && (`home_points`!=0 && `away_points`!=0)) AS `ties`,`users`.`id` AS `user_id`,`users`.`username`,`users`.`user_url`,`users`.`confirmed`,`users`.`first_name`,`users`.`last_name`,`photo`.`thumb_url`,`leagues`.`name` AS `league_name`,`leagues`.`url` AS `league_url`,`leagues`.`tournament`,`league_seasons`.`name` AS `season_name`,`league_seasons`.`url` AS `season_url`,`league_seasons`.`closed`,`sports`.`name` AS `sport_name`,`sports`.`icon` AS `sport_icon` FROM `teams` LEFT JOIN `users` ON (`teams`.`owner_id` = `users`.`id`) LEFT JOIN `photo` ON (`teams`.`logo_id` = `photo`.`photo_id`) LEFT JOIN `league_teams` ON (`teams`.`team_id` = `league_teams`.`team_id`) LEFT JOIN `leagues` ON (`league_teams`.`league_id` = `leagues`.`league_id`) LEFT JOIN `league_seasons` ON (`league_teams`.`season_id` = `league_seasons`.`season_id`) INNER JOIN `sports` ON (`teams`.`sport_id` = `sports`.`sport_id`) WHERE `teams`.`approved` = '1' and `teams`.`active` = '1' and `league_teams`.`league_id` = '53' and `league_teams`.`season_id` = '94' ORDER BY `wins` DESC,`teams`.`fullname` ASC

QUERY(2.5749ms) - SELECT `img_url`,`fullname` FROM `teams` INNER JOIN `league_teams` ON `teams`.`team_id`=`league_teams`.`team_id` INNER JOIN `league_seasons` ON `league_teams`.`season_id`=`league_seasons`.`season_id` && `league_seasons`.`url`='winter-2022-1663106236' INNER JOIN `photo` ON `teams`.`jersey_img`=`photo`.`photo_id` WHERE `jersey_img` > 0 ORDER BY `fullname` ASC

QUERY(0.8559ms) - SELECT `img_url`,`fullname` FROM `teams` INNER JOIN `league_teams` ON `teams`.`team_id`=`league_teams`.`team_id` INNER JOIN `league_seasons` ON `league_teams`.`season_id`=`league_seasons`.`season_id` && `league_seasons`.`url`='winter-2022-1663106236' INNER JOIN `photo` ON `teams`.`jersey_img_away`=`photo`.`photo_id` WHERE `jersey_img_away` > 0 ORDER BY `fullname` ASC

QUERY(0.737ms) - SELECT `teams`.`url`,`fullname`,`sports`.`name` AS `sport_name` FROM `teams` INNER JOIN `sports` ON `teams`.`sport_id`=`sports`.`sport_id` INNER JOIN `teams_players` ON `teams_players`.`team_id`=`teams`.`team_id` WHERE `access`>=4 && `access`<=6 && `teams_players`.`player_id`=''

QUERY(0.2682ms) - SELECT * FROM `users` WHERE `username`=''

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

QUERY(0.1249ms) - SELECT SQL_CACHE * FROM teams_config

QUERY(0.6781ms) - SELECT `teams`.`url`,`fullname`,`sports`.`name` AS `sport_name` FROM `teams` INNER JOIN `sports` ON `teams`.`sport_id`=`sports`.`sport_id` INNER JOIN `teams_players` ON `teams_players`.`team_id`=`teams`.`team_id` WHERE `access`>=4 && `access`<=6 && `teams_players`.`player_id`=''

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