fix ticket queries (whew, that was super tedious to track down), RT#13852