You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a pretty complex index view that features filters, search as well as your sortable package(which is great BTW -- thank you!). When the user chooses to filter or search, and then try to sort a column that involves the same table, we end up with a duplicate join on that table. We've added the join due to the filter, then the subsequent call to sortable in the query builder adds a second join.
I include the error and some code from the controller below that I hope add to the understanding of what I'm trying to do. Is there something I missed that would enable this to work or should I be explicitly checking the joins in the query for duplicates?
Thanks
Got exception: SQLSTATE[42000]: Syntax error or access violation: 1066 Not unique table/alias: 'session' (SQL: select count(*) as aggregate from `presentation` inner join `session` on `presentation`.`session_id` = `session`.`id` inner join `session` on `presentation`.`session_id` = `session`.`id` inner join `session_track` on `session`.`session_track_id` = `session_track`.`id` where `presentation`.`meeting_id` = 58 and `presentation`.`status_id` in (4, 5) and `presentation`.`active` = 1 and `session_id` = 6811 and `session`.`session_track_id` = 434)
I have a pretty complex index view that features filters, search as well as your sortable package(which is great BTW -- thank you!). When the user chooses to filter or search, and then try to sort a column that involves the same table, we end up with a duplicate join on that table. We've added the join due to the filter, then the subsequent call to sortable in the query builder adds a second join.
I include the error and some code from the controller below that I hope add to the understanding of what I'm trying to do. Is there something I missed that would enable this to work or should I be explicitly checking the joins in the query for duplicates?
Thanks
The text was updated successfully, but these errors were encountered: