Homestyx hydra

R1:7f90570636af

When paging by Ferret "rank", page using "HAVING rank > ...", not "WHERE rank > ..."

Summary:
Ref T13091. The Ferret "rank" column is a function of the query text and looks something like `SELECT ..., 2 + 2 AS rank, ...`.

You can't apply conditions to this kind of dynamic column with a WHERE clause: you get a slightly unhelpful error like "column rank unknown in where clause". You must use HAVING:

```
mysql> SELECT 2 + 2 AS x WHERE x = 4;
ERROR 1054 (42S22): Unknown column 'x' in 'where clause'
mysql>…
Repository: R1 hydra
Commit Date: Mar 25 2019