I'm counting the number of votes given to an item, and there's only two possible values:
vote = 1 and vote = 2.
SELECT COUNT(*) AS count
FROM match_votes
WHERE match_id = :match_id
GROUP BY vote
However if there has been no votes for 1 but votes for 2 then it will only return 1 row since it doesn't count null values. I want to return count for vote = 1 and vote = 2, even if there's no votes for the item.
Also, I want to ensure that the count for vote = 1 is always the first row.