How to get a list of child pages of the current page in the WordPress.Only you have to call to wordpress wp_list_pages core function to get child pages.No display errors and no need to write sql statements.

Note:
Get parent page ID

Get Current page ID