WordPress database error Unknown column ‘total_downloads’ in ‘order clause’
-
I’m getting the error below in PHP logs since the latest update, any suggestions? Thanks!
—
WordPress database error Unknown column ‘total_downloads’ in ‘order clause’ for query
SELECT wp_posts.ID
FROM wp_posts LEFT JOIN wp_dlm_downloads ON (wp_posts.ID = wp_dlm_downloads.download_id) LEFT JOIN
( SELECT wp_postmeta.meta_value, wp_postmeta.post_id FROM wp_postmeta WHERE
wp_postmeta.meta_key = ‘_download_count’ GROUP BY wp_postmeta.post_id ) as meta_downloads ON ( meta_downloads.post_id = wp_posts.ID )
WHERE 1=1 AND ((wp_posts.post_type = ‘dlm_download’ AND (wp_posts.post_status = ‘publish’ OR wp_posts.post_status = ‘xlwctydisabled’ OR wp_posts.post_status = ‘wcst_triggerdisabled’ OR wp_posts.post_status = ‘future’ OR wp_posts.post_status = ‘draft’ OR wp_posts.post_status = ‘pending’
OR wp_posts.post_status = ‘private’)))
GROUP BY wp_posts.ID
ORDER BY total_downloads DESC
LIMIT 0, 10
made by wp_dashboard, do_meta_boxes, DLM_Admin_Dashboard->popular_downloads, DLM_WordPress_Download_Repository->retrieve, WP_Query->query, WP_Query->get_posts
- The topic ‘WordPress database error Unknown column ‘total_downloads’ in ‘order clause’’ is closed to new replies.