© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
4 replies
dotdotdot

ambiguous column name: id

Hello, I have an exporter on my User relation manager. sometimes when I export, it fails with the following error:
General error: 1 ambiguous column name: id (Connection: sqlite, SQL:
General error: 1 ambiguous column name: id (Connection: sqlite, SQL:
 select distinct "users"."id" from "users" inner join "course_user" on "users"."id" = "course_user"."user_id" where "course_user"."course_id" = 1 order by "users"."id" asc, "id" asc limit 1000)
 select distinct "users"."id" from "users" inner join "course_user" on "users"."id" = "course_user"."user_id" where "course_user"."course_id" = 1 order by "users"."id" asc, "id" asc limit 1000)
Solution
I couldn't figure out how to change the query on the exporter to change the order by clause, so I removed the normal exportAction entirely and kept only the bulkAction which doesn't attempt to sort the results
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Ambiguous "id" column on Edit Page
FilamentFFilament / ❓┊help
3y ago
Column 'name' in where clause is ambiguous
FilamentFFilament / ❓┊help
3y ago
RelationManager belongsToMany withPivot(['id']) returns Column 'id' in order clause is ambiguous
FilamentFFilament / ❓┊help
2y ago
Column 'id' in where clause is ambiguous in edit record page
FilamentFFilament / ❓┊help
2y ago