SELECT `wp_comments` . * FROM `wp_comments` JOIN `wp_posts` ON ( `wp_comments` . `comment_post_ID` = `wp_posts` . `ID` ) WHERE ( `post_status` = ? OR ( `post_status` = ? AND `post_type` = ? ) ) AND `comment_approved` = ? ORDER BY `comment_date_gmt` DESC LIMIT ? 