Relation at index 2 doesn't contain an entity already added to the FROM clause. Bad alias?