SELECT DISTINCT `player`,
FIRST_VALUE(`year`)
OVER (PARTITION BY `player` ORDER BY `year` DESC
RANGE BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) AS `maxYear`,
FIRST_VALUE(`city`)
OVER (PARTITION BY `player` ORDER BY `year` DESC
RANGE BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) AS `mCity`
FROM `champ_matches`
Showing rows 0 - 29 ( 44 total, Query took 289.6461 sec)
$extOptions = json_decode($extOptionsStr["ext_options"]);
чтобы понять происходящее, вы эту ерунду попробуйте сохранить в file.pdf и открыть как pdf
Я читал тут - Делаем вебсокеты на PHP с нуля, показалось иначе.