Attempting to create Monthly Leaderboard query - head exploding

I think you just need to add a join in there:

left join b on b.user_id = users.id