Removing half-baked PHPQuery extension. Fixes #960.
Escape the sortorder properly. Fixes #955.