Ver originalSELECT category.name, COUNT(category.id) as totalFROM category, postWHERE category.id = post.category_idGROUP BY category.id