-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unknown column in 'on clause' when using limit & offset #9166
Labels
Comments
+1 |
2 similar comments
+1 |
+1 |
This was referenced Apr 7, 2018
Yes, this is resolved. Thank you. |
I've had this same issue and, as of v4.37.6, using |
Still having this issue when setting required: true on at least one include. |
@jcnsilva ty, |
Moved to #9869 |
You save my day 🎉 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This may be the same root cause as #9157, but I am not totally sure. If it is, feel free to close and I'm sorry.
What are you doing?
What do you expect to happen?
I expected to get an array w/ the single user that I created. The results should be exactly the same as the query below.
The result of the above query:
What is actually happening?
I get a ER_BAD_FIELD_ERROR exception. The SQL that is executed is also incredibly complicated given what we are actually trying to retrieve.
error:
generated query:
expected query:
__Dialect: mysql
__Dialect version: mysql2@1.5.2
__Database version: 5.7.21
__Sequelize version: 4.35.2
__Tested with latest release: Yes, 4.35.2
Note : Your issue may be ignored OR closed by maintainers if it's not tested against latest version OR does not follow issue template.
The text was updated successfully, but these errors were encountered: