Fix for #2201 - Cannot use "having" in a CDbCriteria to count AR model values (results in SQL error)

Fix for #2201 - adds the missing `params` array from the `query` object.