SELECT 
  product_id, 
  amount 
FROM 
  cscart_warehouses_sum_products_amount 
WHERE 
  1 
  AND product_id IN (
    51020, 51423, 51067, 51063, 51435, 51031, 
    51062, 51026, 51028, 51431, 51441, 
    51425, 51030, 51033, 51035, 51432, 
    51041, 51042, 51434, 51032, 51070, 
    51037, 51038, 51052, 51059, 51023, 
    51061, 51064, 51069, 51040, 51050, 
    51066
  )

Query time 0.00061

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "34.56"
    },
    "table": {
      "table_name": "cscart_warehouses_sum_products_amount",
      "access_type": "range",
      "possible_keys": [
        "PRIMARY"
      ],
      "key": "PRIMARY",
      "used_key_parts": [
        "product_id"
      ],
      "key_length": "3",
      "rows_examined_per_scan": 59,
      "rows_produced_per_join": 59,
      "filtered": "100.00",
      "index_condition": "(`test_uchur_k`.`cscart_warehouses_sum_products_amount`.`product_id` in (51020,51423,51067,51063,51435,51031,51062,51026,51028,51431,51441,51425,51030,51033,51035,51432,51041,51042,51434,51032,51070,51037,51038,51052,51059,51023,51061,51064,51069,51040,51050,51066))",
      "cost_info": {
        "read_cost": "28.66",
        "eval_cost": "5.90",
        "prefix_cost": "34.56",
        "data_read_per_join": "944"
      },
      "used_columns": [
        "product_id",
        "amount"
      ]
    }
  }
}

Result

product_id amount
51020 5
51020 5
51023 5
51023 5
51026 5
51026 5
51028 3
51028 3
51030 1
51030 1
51031 2
51031 2
51032 2
51032 2
51033 1
51033 1
51035 1
51035 1
51037 1
51037 1
51038 1
51038 1
51040 2
51040 2
51041 5
51041 5
51042 5
51042 5
51050 5
51050 5
51052 2
51052 2
51059 20
51059 20
51061 5
51061 5
51062 4
51062 4
51063 5
51063 5
51064 5
51064 5
51066 5
51066 5
51067 5
51067 5
51069 2
51069 2
51070 2
51070 2
51423 4
51423 4
51425 5
51425 5
51431 19
51431 19
51432 1
51432 1
51434 1
51434 1
51435 1
51435 1
51441 1
51441 1