WordPress database error: [Expression #1 of ORDER BY clause is not in SELECT list, references column 'wp_cypruscom.wp_posts.post_date' which is not in SELECT list; this is incompatible with DISTINCT]
SELECT DISTINCT YEAR( post_date ) AS year, MONTH( post_date ) AS month
WHERE post_type = 'attachment'
ORDER BY post_date DESC
/* From [www.cyprus.com/listing/tina-kay-hair-beauty-traning-center-school/] in [/nas/content/live/cypruscom/wp-content/plugins/wiloke-listgo-functionality/app/Controllers/AddListingController.php:507] */