Hello,

We upgraded our Clickhouse version to 22.3.3.44. After ugrade, we get strange exception in the queries. If I include 'n' word to where query, it gives an exception. 

I have a sample query like below:

```
SELECT ts FROM event WHERE ((appkey='n') AND (ecode = 'n')) ORDER BY ts ASC limit 1;
```

It gives below exception:

```
Received exception from server (version 22.3.3):
Code: 10. DB::Exception: Received from localhost:9000. DB::Exception: Not found column ecode in block. There are only columns: appkey, ts, equals(ecode, 'n'). (NOT_FOUND_COLUMN_IN_BLOCK)
```

If I change 'n' with 'a' in the where query, it doesn't give the exception:
```
SELECT ts FROM event WHERE ((appkey='a') AND (ecode = 'a')) ORDER BY ts ASC limit 1;
```

Result:

```
0 rows in set. Elapsed: 0.047 sec.
```

**Affected Version**
22.3.3.44

**show create table event**

```
CREATE TABLE event
(
    `appkey` String,
    `ecode` String,
    `userid` String,
    `iid` String,
    `exid` String,
    `did` String,
    `sid` String,
    `pid` Int32,
    `fid` String,
    `appVersion` String,
    `platform` UInt8,
    `revenue` Float64,
    `ts` DateTime,
    `ea` String,
    `eb` String,
    `ec` Int32,
    `ed` Int32,
    `ee` String,
    `ef` String,
    `eg` String,
    `eh` String,
    `ei` String,
    `ej` String,
    `ek` String,
    `el` Float64,
    `em` String,
    `en` String,
    `eo` Int32,
    `ep` Float64,
    `eq` Float64,
    `er` Float64,
    `es` Float64,
    `et` String,
    `eu` String,
    `ev` String,
    `fc` Float64,
    `fd` Float64,
    `fe` Int32,
    `ff` Int32,
    `fg` UInt8,
    `fh` UInt8,
    `fi` DateTime,
    `fj` DateTime,
    `fk` String,
    `fl` String,
    `fm` Int32,
    `fn` Int32,
    `fo` String,
    `fp` String,
    `fq` Int64,
    `fr` Int64,
    `fs` String,
    `ft` Float64,
    `fu` Int64,
    `fv` String,
    `fw` Float64,
    `fx` String,
    `fy` Int32,
    `fz` Int32,
    `ga` String,
    `gb` Int64,
    `gc` Int64,
    `data` String,
    `txt` String,
    `cmp` String,
    `piid` String,
    `uid` String,
    `gd` String,
    `ge` String,
    `rv` Float64
)
ENGINE = MergeTree
PARTITION BY toYYYYMMDD(ts)
ORDER BY (appkey, ecode, ts)
SETTINGS index_granularity = 8192
```
group_by_kind = GroupByKind::ORDINARY;
            
            
            if (group_by_kind != GroupByKind::ORDINARY)
                aggregated_columns.emplace_back("__grouping_set", std::make_shared<DataTypeUInt64>());
            for (ssize_t i = 0; i < static_cast<ssize_t>(group_asts.size()); ++i)
            {
                ssize_t size = group_asts.size();
                if (getContext()->getSettingsRef().enable_positional_arguments)
                    replaceForPositionalArguments(group_asts[i], select_query, ASTSelectQuery::Expression::GROUP_BY);
                if (select_query->group_by_with_grouping_sets)
                {
                    ASTs group_elements_ast;
                    const ASTExpressionList * group_ast_element = group_asts[i]->as<const ASTExpressionList>();
                    group_elements_ast = group_ast_element->children;
                    NamesAndTypesList grouping_set_list;
                    ColumnNumbers grouping_set_indexes_list;
                    for (ssize_t j = 0; j < ssize_t(group_elements_ast.size()); ++j)
                    {
                        getRootActionsNoMakeSet(group_elements_ast[j], temp_actions, false);
                        ssize_t group_size = group_elements_ast.size();
                        const auto & column_name = group_elements_ast[j]->getColumnName();
                        const auto * node = temp_actions->tryFindInIndex(column_name);
                        if (!node)
                            throw Exception("Unknown identifier (in GROUP BY): " + column_name, ErrorCodes::UNKNOWN_IDENTIFIER);
                        
                        if (getContext()->getClientInfo().distributed_depth == 0 || settings.distributed_group_by_no_merge > 0)
                        {
                            
                            if (node->column && isColumnConst(*node->column))