Hello, when I have a GROUP BY in my sql, the pagination do not get generated by EE
Is this a known limitation of the Query module ?
Is there any workaround ?
This works:
{exp:query limit="30" paginate="both" sql="
SELECT t.entry_id as supplier_id, t.title as supplier_name
FROM exp_weblog_titles as t
WHERE t.weblog_id = '8'
AND t.title REGEXP 'A'
ORDER BY t.title ASC
"}
This does not work:
{exp:query limit="30" paginate="both" sql="
SELECT t.entry_id as supplier_id, t.title as supplier_name, MIN(p.cat_id) as cat_id
FROM exp_weblog_titles as t, exp_category_posts as p
WHERE t.weblog_id = '8'
AND t.title REGEXP 'A'
AND p.entry_id = t.entry_id
GROUP BY t.title ASC
"}Thanks