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

Query time 0.00063

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "34.11"
    },
    "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": 58,
      "rows_produced_per_join": 58,
      "filtered": "100.00",
      "index_condition": "(`test_uchur_k`.`cscart_warehouses_sum_products_amount`.`product_id` in (51020,51027,51067,51423,51435,51431,51031,51062,51028,51441,51432,51042,51030,51425,51026,51434,51032,51033,51035,51059,51066,51041,51069,51070,51038,51065,51023,51056,51040,51050,51034,51039))",
      "cost_info": {
        "read_cost": "28.31",
        "eval_cost": "5.80",
        "prefix_cost": "34.11",
        "data_read_per_join": "928"
      },
      "used_columns": [
        "product_id",
        "amount"
      ]
    }
  }
}

Result

product_id amount
51020 5
51020 5
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
51034 1
51034 1
51035 1
51035 1
51038 1
51038 1
51039 1
51039 1
51040 2
51040 2
51041 5
51041 5
51042 5
51042 5
51050 5
51050 5
51056 2
51056 2
51059 20
51059 20
51062 4
51062 4
51065 5
51065 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