SELECT `post_id` FROM `wp3_postmeta` , `wp3_posts` WHERE `ID` = `post_id` AND `post_type` = ? AND `meta_key` = ? AND `meta_value` = ? AND YEAR ( `post_date` ) = ? AND SQL_TSI_MONTH ( `post_date` ) = ? 