Parent notifications: fixed

Fixed the parent notifications-  used the standard sql function for
getting parent's children.