SELECT DISTINCTROW `wp3_posts` . `ID` FROM `wp3_posts` WHERE ? = ? AND MATCH ( `post_title` , `post_content` ) AGAINST (?) AND `wp3_posts` . `post_date` < ? AND `wp3_posts` . `post_date` >= ? AND `wp3_posts` . `post_status` = ? AND `wp3_posts` . `ID` != ? AND `wp3_posts` . `post_type` IN (?) LIMIT ? 