WP-3862 Changes to select up thru all parents