SELECT 
  sess_id 
FROM 
  cscart_stat_sessions 
WHERE 
  uniq_code = 1123279416 
  AND timestamp > 1715542230 
  AND cscart_stat_sessions.company_id = 1

Query time 0.02228

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "1637.80"
    },
    "table": {
      "table_name": "cscart_stat_sessions",
      "access_type": "ref",
      "possible_keys": [
        "timestamp",
        "company_id"
      ],
      "key": "company_id",
      "used_key_parts": [
        "company_id"
      ],
      "key_length": "4",
      "ref": [
        "const"
      ],
      "rows_examined_per_scan": 4814,
      "rows_produced_per_join": 220,
      "filtered": "4.58",
      "cost_info": {
        "read_cost": "675.00",
        "eval_cost": "44.11",
        "prefix_cost": "1637.80",
        "data_read_per_join": "375K"
      },
      "used_columns": [
        "sess_id",
        "uniq_code",
        "timestamp",
        "company_id"
      ],
      "attached_condition": "((`eshopuga_upgr_4122`.`cscart_stat_sessions`.`uniq_code` = 1123279416) and (`eshopuga_upgr_4122`.`cscart_stat_sessions`.`timestamp` > 1715542230))"
    }
  }
}

Result

sess_id
13354
13482
13816
13956
14228
14444
14646
15404
15688
15813
15922
16050
16173
16315
16426
16553
16674
16788
17244
17370
17615