Fix limit and offset usage when performing a parameterized query. Also fix filter_op usage.