MySQL server has gone away SELECT CONCAT(a.`match`, '-', a.player, '-', a.type, '-', a.time, '-', a.timeAdditional), a.*,,, m.visitor, m.comment, m.season, matchDate, m.time matchTime, seasonName, at.image actionsTypeImage, actionsTypeName, m.goalsHost, m.goalsVisitor, clubName, playerName, p.seo playerSEO, h.seo hostSEO, hostName, v.seo visitorSEO, visitorName, m.round FROM actions a LEFT JOIN actions_types at ON (a.type = LEFT JOIN matches m ON (a.`match` = LEFT JOIN seasons s ON (m.season = LEFT JOIN clubs_names cn ON ( = AND m.season BETWEEN cn.seasonFrom AND cn.seasonTo) LEFT JOIN players p ON (a.player = LEFT JOIN clubs h ON ( = LEFT JOIN clubs_names hn ON ( = AND m.season BETWEEN hn.seasonFrom AND hn.seasonTo) LEFT JOIN clubs v ON (m.visitor = LEFT JOIN clubs_names vn ON ( = AND m.season BETWEEN vn.seasonFrom AND vn.seasonTo) WHERE `match` = '15172' ORDER BY time, timeAdditional