I wanted to convert this query as I could use it in Lavarel DB \ Facades
SELECT FIND_IN_SET(KillCount, (SELECT GROUP_CONCAT(KillCount ORDER BY KillCount DESC) FROM users)) AS Rank FROM users WHERE id = 1
It takes the position rank of the player by the order of Kills of the whole server.
Update
When using whereRaw
, as suggested, the following error occurs
Because before it does the assembly of SELECT *