**Describe what's wrong**

Correct query doesn't work.

**Does it reproduce on recent release?**

Yes,

ClickHouse version 21.11

```
CREATE TABLE tbl_repr(
ts DateTime,
x  String)
ENGINE=MergeTree ORDER BY ts;

SELECT *
FROM
(
    SELECT
        x,
        length(x)
    FROM tbl_repr
    WHERE ts > now()
    LIMIT 1
)
WHERE x != ''

Query id: 083cdb34-500b-4b43-b096-9c8140165a65


0 rows in set. Elapsed: 0.004 sec.

Received exception from server (version 21.11.1):
Code: 8. DB::Exception: Received from localhost:9000. DB::Exception: Cannot find column `length(x)` in source stream, there are only columns: [x]. (THERE_IS_NO_COLUMN)
```

**Expected behavior**

Query works


**Error message and/or stacktrace**

Code: 8. DB::Exception: Received from localhost:9000. DB::Exception: Cannot find column `length(x)` in source stream, there are only columns: [x]. (THERE_IS_NO_COLUMN)

{
    String prefix(settings.offset, ' ');
    settings.out << prefix << "Limit " << limit << '\n';
    settings.out << prefix << "Offset " << offset << '\n';
    if (with_ties || always_read_till_end)
    {
        settings.out << prefix;
        String str;
        if (with_ties)
            settings.out << "WITH TIES";
        if (always_read_till_end)
        {
            if (!with_ties)
                settings.out << ", ";
            settings.out << "Reads all data";
        }
        settings.out << '\n';
    }
}
void LimitStep::describeActions(JSONBuilder::JSONMap & map) const
{
    map.add("Limit", limit);
    map.add("Offset", offset);
    map.add("With Ties", with_ties);
    map.add("Reads All Data", always_read_till_end);
}
}