SELECT `id`, `name`, MAX(`score`) AS max , (select count(*) from gg where name = 'vasya') AS cnt FROM `gg` WHERE `name` = 'vasya' GROUP BY id order by max desc limit 1