Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This not only optimizes the query, but also avoid errors caused when ordering by fields set in the WHERE clause, because count() overrides them by default.
- Loading branch information