SELECT
SUM(IF(rating_rating <= 5 AND rating_rating >= 4, 1, 0)),
SUM(IF(rating_rating <= 4 AND rating_rating >= 3, 1, 0)),
SUM(IF(rating_rating <= 3 AND rating_rating >= 0, 1, 0))
FROM wp_ratings
Gebruik gewoon SUM
in plaats van COUNT
en dit meerdere keren. U kunt dan alleen "tellen" wat u wilt tellen.