I have the following query in pdo:
$ranking = $pdo->query("SELECT * FROM usuarios GROUP BY moedas ORDER BY count(moedas) DESC LIMIT 3");
I use this to make a ranking to know users with more coins. However, I am using a second query with rowCount () to know the amount of currencies of the listed user, would it be possible to extract the count value of that first query (quoted in the post)?