Retrieving IDs of child pages which are in a different post type

After some Google searches, I found all I needed to do was set the custom_post_type registration to include hierarchical => true and this solved my problem.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)