Is there a way to get a row count from a query before limiting the rows returned? For example:
Select name, count(id) from Users limit 0,20;
The query above breaks two rules:
I'm not sure how to count the records of the query before the limit clause it added.
You're not allowed to use count unless you group by something.
Can someone please suggest a way around these issues?
Thanks,
Andrew