ma non ti bastava fare una group by month(posts.date)?