Replies: 2 comments 1 reply
-
This looks similar to cyrildewit/eloquent-viewable#263. I think this might be a limitation of the cursorPaginate functionality. |
Beta Was this translation helpful? Give feedback.
0 replies
-
You should put it to another query as a subquery then you can use its alias |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description:
the error occurs when loading the next page, my query looklike:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'LikeCountRecent' in 'where clause'
Maybe the cursorPaginate try to query on
LikeCountRecent
columnwhere (`LikeCountRecent` < 0 or (`LikeCountRecent` = 0 and (`Id` < 246))) order by `LikeCountRecent` desc, `Id` desc limit 21)
Steps To Reproduce:
Beta Was this translation helpful? Give feedback.
All reactions