WordPress database error: [Unknown column 'wp_emkc_postmeta.meta_value' in 'order clause']
SELECT SQL_CALC_FOUND_ROWS wp_emkc_posts.ID FROM wp_emkc_posts LEFT JOIN wp_emkc_term_relationships ON (wp_emkc_posts.ID = wp_emkc_term_relationships.object_id) LEFT JOIN wp_emkc_posts AS p2 ON (wp_emkc_posts.post_parent = p2.ID) WHERE 1=1 AND ( wp_emkc_term_relationships.term_taxonomy_id IN (109) ) AND wp_emkc_posts.post_type IN ('post', 'page', 'attachment', 'revision', 'nav_menu_item', 'custom_css', 'customize_changeset', 'oembed_cache', 'product', 'product_variation', 'shop_order', 'shop_order_refund', 'portfolio', 'avia_framework_post') AND (((wp_emkc_posts.post_status = 'publish') OR (wp_emkc_posts.post_status = 'inherit' AND (p2.post_status = 'publish')))) GROUP BY wp_emkc_posts.ID ORDER BY wp_emkc_postmeta.meta_value+0 DESC, wp_emkc_posts.post_date DESC LIMIT 0, 100