I am trying to run this query however it's only outputting results of categories that have items in them, rather than all the categories. This is my query:
SELECT categories.`id` as `cat_id`, categories.`title` as `cat_title`, COUNT(tutorials.`id`) as `total`
FROM `tutorial_categories` as `categories`, `tutorials`
WHERE tutorials.`category` = categories.id
GROUP BY `cat_id`
Can anyone lead me in the right direction here? Thanks.