© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
26 replies
kokpithua

Filtering many to many relations

Does anyone know how to filter based on two tables with a many to many relations? I keep geeting the following error

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'tags' in 'where clause'

SELECT
count(*) AS aggregate
FROM
tasks
tasks

WHERE
(
tags
tags
IN (2))
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Filtering a many-to-many relationship.?
FilamentFFilament / ❓┊help
3y ago
many to many relationship
FilamentFFilament / ❓┊help
16mo ago
Relationship many to many
FilamentFFilament / ❓┊help
2y ago
Many to many Relationship
FilamentFFilament / ❓┊help
3y ago