diff --git a/src/Connected.Expressions/Translation/Binder.cs b/src/Connected.Expressions/Translation/Binder.cs index 91f2d0b..099982f 100644 --- a/src/Connected.Expressions/Translation/Binder.cs +++ b/src/Connected.Expressions/Translation/Binder.cs @@ -349,7 +349,7 @@ public sealed class Binder : DatabaseVisitor var alias = Alias.New(); var pc = ProjectColumns(projection.Projector, alias, projection.Select.Alias); - return new ProjectionExpression(new SelectExpression(alias, pc.Columns, projection.Select.From, where), pc.Projector); + return new ProjectionExpression(new SelectExpression(alias, pc.Columns, projection.Select, where), pc.Projector); } private ProjectionExpression VisitSequence(Expression source) => ConvertToSequence(Visit(source)); @@ -682,7 +682,7 @@ public sealed class Binder : DatabaseVisitor { var alias = Alias.New(); var pc = ProjectColumns(projection.Projector, alias, projection.Select.Alias); - projection = new ProjectionExpression(new SelectExpression(alias, pc.Columns, projection.Select.From, where, null, null, false, null, take, isLast), pc.Projector); + projection = new ProjectionExpression(new SelectExpression(alias, pc.Columns, projection.Select, where, null, null, false, null, take, isLast), pc.Projector); } if (isRoot)