Is SELECT COUNT(foo) supported in the query module?
This is a valid query which returns a few hundred rows:
SELECT c.cat_id, c.cat_name, e.entry_id FROM exp_gallery_categories AS c JOIN exp_gallery_entries AS e ON c.cat_id = e.cat_id WHERE e.gallery_id='4'But this returns nothing:
SELECT c.cat_id, c.cat_name, COUNT(e.entry_id) FROM exp_gallery_categories AS c JOIN exp_gallery_entries AS e ON c.cat_id = e.cat_id WHERE e.gallery_id='4'Moved to HowTo by Moderator