Error: 0
Message: PDO Error: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away Query: SELECT mi.*,
IF( mi.round_id > 0, IF( mi.round_extra_id > 0, CONCAT( mrd.name, " — ", mred.name ), mrd.name ), mi.round_name ) round_name,
c.default_kit home_default_kit,
c.alt_kit home_alt_kit,
c.alt_name home_alt_name,
CONCAT( "/", m.filePathInternal, "/", m.fileName, ".", m.fileExtension ) home_current_logo,
CONCAT( "/", m3.filePathInternal, "/", m3.fileName, ".", m3.fileExtension ) home_logo,
c2.default_kit away_default_kit,
c2.alt_kit away_alt_kit,
c2.alt_name away_alt_name,
CONCAT( "/", m2.filePathInternal, "/", m2.fileName, ".", m2.fileExtension ) away_current_logo,
CONCAT( "/", m4.filePathInternal, "/", m4.fileName, ".", m4.fileExtension ) away_logo,
cd.clubName home_current_name,
cd2.clubName away_current_name,
cd.club_short_name home_current_short_name,
cd2.club_short_name away_current_short_name,
cd.url home_url,
cd2.url away_url,
cnd.name home_name,
cnd2.name away_name,
cnd.short_name home_short_name,
cnd2.short_name away_short_name,
td.name tournament_name,
td.url tournament_url,
sd.stadiumName stadium_current_name,
sd.cityName stadium_current_city,
sd.url stadium_url,
snd.name stadium_name,
snd.city stadium_city,
sed.name season_name,
sed.url season_url,
tv.admin_name tv_name,
tv.alt_name tv_alt_name,
pd.firstName main_firstName,
pd.lastName main_lastName,
pd.commonName main_commonName,
pd.nickName main_nickName,
co.main_other_name main_other_player,
pd.url main_url,
pd2.firstName secondary_firstName,
pd2.lastName secondary_lastName,
pd2.commonName secondary_commonName,
pd2.nickName secondary_nickName,
pd2.url secondary_url,
nt.lang_code home_lang,
nt2.lang_code away_lang,
CONCAT( "/", m5.filePathInternal, "/", m5.fileName, ".", m5.fileExtension ) program_doc,
CASE WHEN match_date_delayed = "0000-00-00 00:00:00" THEN match_date ELSE match_date_delayed END AS sortable_date
FROM match_info mi left JOIN match_round_description mrd ON mi.round_id = mrd.round_id AND mrd.language_id = 3 left JOIN match_round_extra_description mred ON mi.round_extra_id = mred.round_extra_id AND mred.language_id = 3 left JOIN club c ON mi.home_club_id = c.id left JOIN club_description cd ON mi.home_club_id = cd.clubId AND cd.languageId = 3 left JOIN club_name cn ON c.id = cn.club_id AND IF( mi.match_date_delayed = "0000-00-00 00:00:00", mi.match_date, mi.match_date_delayed) BETWEEN cn.date_from AND cn.date_to left JOIN club_name_description cnd ON cn.id = cnd.club_name_id AND cnd.language_id = 3 left JOIN media m ON m.id = c.logoId left JOIN media m3 ON m3.id = cn.logo_id left JOIN club c2 ON mi.away_club_id = c2.id left JOIN club_description cd2 ON mi.away_club_id = cd2.clubId AND cd2.languageId = 3 left JOIN club_name cn2 ON c2.id = cn2.club_id AND IF( mi.match_date_delayed = "0000-00-00 00:00:00", mi.match_date, mi.match_date_delayed) BETWEEN cn2.date_from AND cn2.date_to left JOIN club_name_description cnd2 ON cn2.id = cnd2.club_name_id AND cnd2.language_id = 3 left JOIN media m2 ON m2.id = c2.logoId left JOIN media m4 ON m4.id = cn2.logo_id left JOIN tournament t ON mi.tournament_id = t.id left JOIN tournament_description td ON mi.tournament_id = td.tournament AND td.language = 3 left JOIN stadium s ON mi.stadium_id = s.id left JOIN stadium_description sd ON mi.stadium_id = sd.stadiumId AND sd.languageId = 3 left JOIN stadium_name sn ON s.id = sn.stadium_id AND IF( mi.match_date_delayed = "0000-00-00 00:00:00", mi.match_date, mi.match_date_delayed) BETWEEN sn.date_from AND sn.date_to left JOIN stadium_name_description snd ON sn.id = snd.stadium_name_id AND snd.language_id = 3 left JOIN season se ON t.season = se.id left JOIN season_description sed ON sed.season = se.id AND sed.language = 3 left JOIN tv tv ON tv.id = mi.tv_id left JOIN media m5 ON m5.id = mi.program left JOIN coaches co ON ( (co.date_from <= CAST( IF( mi.match_date_delayed = "0000-00-00 00:00:00", mi.match_date, mi.match_date_delayed) AS DATE ) AND co.date_to >= CAST( IF( mi.match_date_delayed = "0000-00-00 00:00:00", mi.match_date, mi.match_date_delayed) AS DATE )) OR (co.date_from <= CAST( IF( mi.match_date_delayed = "0000-00-00 00:00:00", mi.match_date, mi.match_date_delayed) AS DATE ) AND co.date_to = "0000-00-00") OR (co.date_from <= CAST( IF( mi.match_date_delayed = "0000-00-00 00:00:00", mi.match_date, mi.match_date_delayed) AS DATE ) AND co.date_to IS NULL) ) AND co.club_id = IF( home_club_id = 1 OR away_club_id = 1, 1, IF( home_club_id = 19 OR away_club_id = 19, 19, IF( home_club_id = 414 OR away_club_id = 414, 414, IF( home_club_id = 413 OR away_club_id = 413, 413, IF( home_club_id = 363 OR away_club_id = 363, 363, 0 ) ) ) ) ) AND co.position = 1 left JOIN profile_description pd ON pd.profile = co.main_id AND pd.language = 3 left JOIN profile_description pd2 ON pd2.profile = co.secondary_id AND pd2.language = 3 LEFT JOIN national_team nt ON nt.id = c.countryId LEFT JOIN national_team nt2 ON nt2.id = c2.countryId HAVING sortable_date = '2025-09-06 17:01' LIMIT 1
File: /var/www/html/cska/tinymvc/sysfiles/plugins/tinymvc_pdo.php
Line: 537
Trace: #0 /var/www/html/cska/tinymvc/sysfiles/plugins/tinymvc_pdo.php(500): TinyMVC_PDO->_query('SELECT mi.*,\r\n\t...', NULL, 1, NULL)
#1 /var/www/html/cska/tinymvc/myapp/models/match_model.php(192): TinyMVC_PDO->query_one()
#2 /var/www/html/cska/tinymvc/myapp/controllers/match_controller.php(87): Match_Model->get_match_by_date('2025-09-06 17:0...')
#3 /var/www/html/cska/tinymvc/myapp/controllers/root.php(169): Match_Controller->index('0')
#4 /var/www/html/cska/tinymvc/sysfiles/TinyMVC.php(120): Root_Controller->index()
#5 /var/www/html/cska/htdocs/index.php(81): tmvc->main()
#6 {main}