Title: Query Error
Last modified: November 24, 2022

---

# Query Error

 *  Resolved [Masidus](https://wordpress.org/support/users/masidus/)
 * (@masidus)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/query-error-7/)
 * Hello,
 * We have a piece of code which edits the functionality of the product sorting 
   on WooCommerce category pages. For the sorting options which this code affects(
   Popularity + Average Rating), the Product Filter is not showing.
 * Upon inspecting the ‘Query Monitor’ plugin, we are receiving this error:
 * `Unknown column 'wc_product_meta_lookup.average_rating' in 'field list'`
 * Ideally a way to either rectify the error or skip the error entirely would be
   excellent so the Product Filter still loads – there are other strings in the 
   code which may very well trigger the same error so fixing a specific string may
   not solve the issue.
 * Let us know if you need anymore info, many thanks for your time!

Viewing 1 replies (of 1 total)

 *  Plugin Author [WBW Plugins](https://wordpress.org/support/users/woobewoo/)
 * (@woobewoo)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/query-error-7/#post-16235760)
 * Hello [@masidus](https://wordpress.org/support/users/masidus/),
 * Please contact our internal support team.
    We need more info on this issue.
 * [https://woobewoo.com/contact-us/](https://woobewoo.com/contact-us/)

Viewing 1 replies (of 1 total)

The topic ‘Query Error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/woo-product-filter_a0a6df.svg)
 * [Product Filter for WooCommerce by WBW](https://wordpress.org/plugins/woo-product-filter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-product-filter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-product-filter/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-product-filter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-product-filter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-product-filter/reviews/)

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [field](https://wordpress.org/support/topic-tag/field/)
 * [filter](https://wordpress.org/support/topic-tag/filter/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [queries](https://wordpress.org/support/topic-tag/queries/)
 * [query](https://wordpress.org/support/topic-tag/query/)
 * [sorting](https://wordpress.org/support/topic-tag/sorting/)

 * 1 reply
 * 2 participants
 * Last reply from: [WBW Plugins](https://wordpress.org/support/users/woobewoo/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/query-error-7/#post-16235760)
 * Status: resolved