I would like to perform a subquery within this query:
$ranking = $pdo->query("SELECT * FROM usuarios_emblemas GROUP BY usuario ORDER BY count(usuario) DESC LIMIT 3");
It would be to block the list of users with banned = true, ie I want to do this same query above but that does not list users with banned = true.
Could you help me?
Edit: The "banned" column is in the "users" table.