SELECT DISTINCTROW YEAR ( `post_date` ) AS YEAR , SQL_TSI_MONTH ( `post_date` ) AS SQL_TSI_MONTH FROM `wp_posts` WHERE `post_type` = ? AND `post_status` != ? AND `post_status` != ? ORDER BY `post_date` DESC 