SELECT `wp_posts` . `ID` , `wp_posts` . `post_parent` FROM `wp_posts` WHERE ? = ? AND `wp_posts` . `post_type` = ? AND ( `wp_posts` . `post_status` = ? OR `wp_posts` . `post_status` = ? OR `wp_posts` . `post_status` = ? OR `wp_posts` . `post_status` = ? OR `wp_posts` . `post_status` = ? ) ORDER BY `wp_posts` . `menu_order` ASC , `wp_posts` . `post_title` ASC 