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

Query time 0.00062

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 (51027,51063,51067,51423,51435,51031,51062,51028,51441,51026,51431,51033,51425,51432,51030,51032,51035,51434,51041,51042,51070,51038,51066,51064,51069,51037,51040,51052,51059,51023,51039,51056))",
      "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
51023 5
51023 5
51026 5
51026 5
51027 2
51027 2
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
51039 1
51039 1
51040 2
51040 2
51041 5
51041 5
51042 5
51042 5
51052 2
51052 2
51056 2
51056 2
51059 20
51059 20
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