I need to calculate the ranking of users who have a score. For this I found in another thread the following query that I would need to translate to cakephp format 3.0 or 3.5:
SELECT *, FIND_IN_SET(points,
(SELECT GROUP_CONCAT(DISTINCT points ORDER BY points DESC)
FROM view_ent_users)) as rank
FROM view_ent_users
WHERE nickname = 'Sebass'
ORDER BY points DESC
Could you help me translate it?
Thanks, regards.