Properly look up which table columns are on during multiple inheritance. Issue #21554