Fix ambiguous column in view extraction. Thanks to Dominique Legendre for the report.