select `users1`.*, `users2`.*
from `minigame`
inner join `users` as `users1` on `minigame`.`userid_1` = `users1`.`id`
inner join `users` as `users2` on `minigame`.`userid_2` = `users2`.`id`
where `minigame`.`id` = '1'
group by `users1`.`username`