Answer the question
In order to leave comments, you need to log in
How to count the total number of records in Sphinx with grouping?
There is a request like
SELECT *, COUNT(group_id) as countByGroup FROM table GROUP BY group_id
SELECT COUNT(*) FROM (SELECT *, COUNT(group_id) as countByGroup FROM table GROUP BY group_id)
and I get an error: "Syntax error or access violation: 1064 sphinxql: outer select list must be a single star near '(SELECT *, COUNT(*)........." Answer the question
In order to leave comments, you need to log in
Apparently you are somehow incorrectly passing the request to the ActiveDataProvider
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question