-
Hi
if I comment following column, then filter works perfectly
|
Beta Was this translation helpful? Give feedback.
Answered by
dhruva81
Apr 8, 2022
Replies: 1 comment
-
Nevermind, I have figured out this. The issue is, here 'active' is ambiguous because in join query both subjects and chapters table have same column 'active' .So where condition without table name is the cause of ambiguous. So instead of using |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
dhruva81
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nevermind, I have figured out this.
The issue is, here 'active' is ambiguous because in join query both subjects and chapters table have same column 'active' .So where condition without table name is the cause of ambiguous.
So instead of using
->where('active', true)
, use->where('chapters.active', true)