Fixes handling of filters in the query cache

Previously, this code was adding a 'filter' attribute to the query.
The query_cache actually has a property called 'filters'.
Additionally, this now merges in the filters to allow for properties
such as 'filters.provider_id'.