SELECT 
  product_id, 
  amount 
FROM 
  cscart_warehouses_sum_products_amount 
WHERE 
  1 
  AND product_id IN (
    51514, 51520, 51538, 51468, 51476, 51503, 
    51539, 51541, 51491, 51492, 51513, 
    51474, 51522, 51499, 51515, 51502, 
    51509, 51519, 51466, 51465, 51508, 
    51485, 51518, 51543, 51550, 51524, 
    51528, 51504, 51512, 51527, 51482, 
    51542
  )

Query time 0.00064

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "37.26"
    },
    "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": 65,
      "rows_produced_per_join": 65,
      "filtered": "100.00",
      "index_condition": "(`test_uchur_k`.`cscart_warehouses_sum_products_amount`.`product_id` in (51514,51520,51538,51468,51476,51503,51539,51541,51491,51492,51513,51474,51522,51499,51515,51502,51509,51519,51466,51465,51508,51485,51518,51543,51550,51524,51528,51504,51512,51527,51482,51542))",
      "cost_info": {
        "read_cost": "30.76",
        "eval_cost": "6.50",
        "prefix_cost": "37.26",
        "data_read_per_join": "1K"
      },
      "used_columns": [
        "product_id",
        "amount"
      ]
    }
  }
}

Result

product_id amount
51465 4
51465 4
51466 4
51466 4
51468 4
51468 4
51474 4
51474 4
51476 1
51476 1
51482 2
51482 2
51485 1
51485 1
51491 1
51491 1
51492 1
51492 1
51499 5
51499 5
51502 3
51502 3
51503 5
51503 5
51504 3
51504 3
51508 4
51508 4
51509 4
51509 4
51512 5
51512 5
51513 5
51513 5
51514 3
51514 3
51515 3
51515 3
51518 7
51518 7
51519 3
51519 3
51520 2
51520 2
51522 3
51522 3
51524 1
51524 1
51527 5
51527 5
51528 5
51528 5
51538 5
51538 5
51539 5
51539 5
51541 3
51541 3
51542 3
51542 3
51543 3
51543 3
51550 4
51550 4