If Child or Grandchild of Page

get_ancestors() will return the full parent page ID hierarchy for a given page ID which you could check against.

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