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

Query time 0.00060

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "33.66"
    },
    "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": 57,
      "rows_produced_per_join": 57,
      "filtered": "100.00",
      "index_condition": "(`test_uchur_k`.`cscart_warehouses_sum_products_amount`.`product_id` in (51027,51433,51063,51067,51026,51031,51062,51435,51035,51028,51441,51425,51431,51033,51432,51041,51030,51032,51042,51434,51037,51059,51065,51066,51061,51064,51070,51426,51038,51050,51052,51023))",
      "cost_info": {
        "read_cost": "27.96",
        "eval_cost": "5.70",
        "prefix_cost": "33.66",
        "data_read_per_join": "912"
      },
      "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
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
51065 5
51065 5
51066 5
51066 5
51067 5
51067 5
51070 2
51070 2
51425 5
51425 5
51426 3
51426 3
51431 19
51431 19
51432 1
51432 1
51433 1
51433 1
51434 1
51434 1
51435 1
51435 1
51441 1
51441 1