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
findAll with include and multiple conditions throws "missing FROM-clause entry for table" error #3401
Comments
What does the failing query look like? |
Combining regular where and include based where in top level where isn't supported at the moment i'm afraid, we're working on a solution. |
Sequelize thows the error before it can even log the query. =/ |
include.where won't since you need a negative query. |
Hmmm... I think I'll just create a "closed" attribute on the Business table. At least until the solution you guys are working on came out.... |
Not sure if it'd be best to report here or open a new issue, but I just got this with a nested
And I only get the error on PostgreSQL (SQLite doesn't complain, even though it looks like the query is the same). |
@jez Please show the model definitions and associations as well |
I've put up my models in this gist. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is still an issue, just leave a comment 🙂 |
Still an issue :( |
Would be nice to fix. (Version three can do this, btw.) In the meantime, guess we're back to writing raw queries. |
Still an issue :/ |
Hi guys! I have one table which keeps track of some "Businesses" and another one wich says wich of this Businesses are "ClosedBusinesses". I need to get the businesses that are not closed. Here's my code:
I'm getting the following error:
And here is the query I need:
The text was updated successfully, but these errors were encountered: