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

Query time 0.00040

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