Adding a SelectFilter with relationship breaks table ordering

I think this is a standard filament question but I'm using the plugin filament-auditing https://filamentphp.com/plugins/auditing and have extended the AuditsRelationManager to add a users filter.
https://github.com/TappNetwork/filament-auditing/blob/main/src/RelationManagers/AuditsRelationManager.php

->filters([
    Tables\Filters\SelectFilter::make('user_id')
        ->relationship('user', 'name') 
])

But not sure why when I add this filter I get
Column not found: 1054 Unknown column 'name' in 'field list' (Connection: mysql, SQL: select name, audits.` from audits order by name` asc)
Was this page helpful?