@cebe cause and its solution has been specified in the issues #2162.
For example, this query returns an error:
```sql
SELECT COUNT (*) FROM some_index WHERE MATH ('foo');
```
1. Add ```GROUP BY```.

 
```sql
SELECT COUNT(*) AS cnt, 1 AS q FROM some_index WHERE MATH ('foo') GROUP BY q;
```

2. use ```SHOW META```

```sql
SELECT * FROM some_index  WHERE MATH ('foo') limit 0;
SHOW META;
```
in the statistics table will be field ***total_found***
http://sphinxsearch.com/forum/view.html?id=10212