I am trying to get the current position in a table in order to get the current ranking of a clan ingame.
I am searching a clan by its name, ordered by clan points, but have no clue how to get then its ranking.
SELECT clans.*, players.playername
FROM `clans`
LEFT JOIN players ON clans.leader_userid = players.userid
WHERE clanname LIKE ?
ORDER BY clans.points DESC LIMIT ?, ?
I would like to LEFT JOIN "AGAIN" this query with
SELECT COUNT(1) WHERE clans.points >= clans.points
but I dont know how.
What would be the correct query ?