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
Cukup gunakan SUM
bukannya COUNT
dan ini berkali-kali. Anda kemudian dapat "menghitung" hanya apa yang ingin Anda hitung.