SELECT `wp_posts` . * FROM `wp_posts` WHERE ? = ? AND `wp_posts` . `post_parent` = ? AND `wp_posts` . `post_type` = ? AND ( ( `wp_posts` . `post_status` = ? ) ) ORDER BY `wp_posts` . `post_date` DESC , `wp_posts` . `ID` DESC 