WordPress database error: [Unknown column 'v.last_viewed' in 'where clause']
SELECT p.ID AS 'id', p.post_title AS 'title', p.post_date AS 'date', p.post_author AS 'uid', SUM(v.pageviews) AS 'pageviews' FROM wpvx_popularpostssummary v LEFT JOIN wpvx_posts p ON v.postid = p.ID WHERE 1 = 1 AND p.post_type IN('post','snax_quiz') AND v.last_viewed > DATE_SUB('2017-10-24 08:33:12', INTERVAL 1 DAY) AND p.post_password = '' AND p.post_status = 'publish' GROUP BY v.postid ORDER BY pageviews DESC LIMIT 10;