WordPress database error: [Unknown column 'sum_of_comments_approved' in 'order clause']
SELECT SQL_CALC_FOUND_ROWS wp_posts.*, AVG( wp_commentmeta.meta_value ) as average_rating FROM wp_posts LEFT OUTER JOIN wp_comments ON(wp_posts.ID = wp_comments.comment_post_ID) LEFT JOIN wp_commentmeta ON(wp_comments.comment_ID = wp_commentmeta.comment_id) WHERE 1=1 AND ( wp_posts.ID NOT IN ( SELECT object_id FROM wp_term_relationships WHERE term_taxonomy_id IN (83) ) ) AND wp_posts.post_type = 'product' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'tribe-ea-success' OR wp_posts.post_status = 'tribe-ea-failed' OR wp_posts.post_status = 'tribe-ea-schedule' OR wp_posts.post_status = 'tribe-ea-pending' OR wp_posts.post_status = 'tribe-ea-draft') AND ( wp_commentmeta.meta_key = 'rating' OR wp_commentmeta.meta_key IS null ) GROUP BY wp_posts.ID ORDER BY sum_of_comments_approved DESC, average_rating DESC, wp_posts.post_date DESC LIMIT 0, 12

Products Archive ~ PEARLS Education

WordPress database error: [Unknown column 'sum_of_comments_approved' in 'order clause']
SELECT wp_posts.*, AVG( wp_commentmeta.meta_value ) as average_rating FROM wp_posts LEFT OUTER JOIN wp_comments ON(wp_posts.ID = wp_comments.comment_post_ID) LEFT JOIN wp_commentmeta ON(wp_comments.comment_ID = wp_commentmeta.comment_id) WHERE 1=1 AND wp_posts.post_type = 'popupbuilder' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'tribe-ea-success' OR wp_posts.post_status = 'tribe-ea-failed' OR wp_posts.post_status = 'tribe-ea-schedule' OR wp_posts.post_status = 'tribe-ea-pending' OR wp_posts.post_status = 'tribe-ea-draft') AND ( wp_commentmeta.meta_key = 'rating' OR wp_commentmeta.meta_key IS null ) GROUP BY wp_posts.ID ORDER BY sum_of_comments_approved DESC, average_rating DESC, wp_posts.post_date DESC

WordPress database error: [Unknown column 'sum_of_comments_approved' in 'order clause']
SELECT wp_posts.*, AVG( wp_commentmeta.meta_value ) as average_rating FROM wp_posts LEFT OUTER JOIN wp_comments ON(wp_posts.ID = wp_comments.comment_post_ID) LEFT JOIN wp_commentmeta ON(wp_comments.comment_ID = wp_commentmeta.comment_id) WHERE 1=1 AND wp_posts.post_type = 'popup' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'tribe-ea-success' OR wp_posts.post_status = 'tribe-ea-failed' OR wp_posts.post_status = 'tribe-ea-schedule' OR wp_posts.post_status = 'tribe-ea-pending' OR wp_posts.post_status = 'tribe-ea-draft') AND ( wp_commentmeta.meta_key = 'rating' OR wp_commentmeta.meta_key IS null ) GROUP BY wp_posts.ID ORDER BY sum_of_comments_approved DESC, average_rating DESC, wp_posts.post_date DESC

PEARLS Education
Quality Islamised Resources