SELECT 
  product_id, 
  amount 
FROM 
  cscart_warehouses_sum_products_amount 
WHERE 
  1 
  AND product_id IN (
    130, 51106, 51107, 51112, 51111, 51110, 
    51109, 51108, 128, 51118, 51117, 51116, 
    51115, 51114, 51113, 51123, 51122, 
    51121, 92, 49, 51129, 51128, 51127, 
    51126, 51125, 48, 51132, 51131, 51134, 
    51133, 51130, 41, 51139, 51138, 51137, 
    51136, 51135, 40, 51144, 51143, 51142, 
    51141, 51140, 39, 51146, 51145, 38, 
    51148, 51147, 51150, 51149, 37, 51155, 
    51154, 51153, 51152, 21, 51158, 51157, 
    51156, 53, 51160, 51159, 50984, 51450, 
    51451, 134, 51565, 51574, 51575, 51576, 
    51577, 51567, 51582, 51583, 51584, 
    51585, 51586
  )

Query time 0.00083

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "90.16"
    },
    "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": 157,
      "rows_produced_per_join": 157,
      "filtered": "100.00",
      "index_condition": "(`test_uchur_k`.`cscart_warehouses_sum_products_amount`.`product_id` in (130,51106,51107,51112,51111,51110,51109,51108,128,51118,51117,51116,51115,51114,51113,51123,51122,51121,92,49,51129,51128,51127,51126,51125,48,51132,51131,51134,51133,51130,41,51139,51138,51137,51136,51135,40,51144,51143,51142,51141,51140,39,51146,51145,38,51148,51147,51150,51149,37,51155,51154,51153,51152,21,51158,51157,51156,53,51160,51159,50984,51450,51451,134,51565,51574,51575,51576,51577,51567,51582,51583,51584,51585,51586))",
      "cost_info": {
        "read_cost": "74.46",
        "eval_cost": "15.70",
        "prefix_cost": "90.16",
        "data_read_per_join": "2K"
      },
      "used_columns": [
        "product_id",
        "amount"
      ]
    }
  }
}

Result

product_id amount
21 2
21 2
37 1
37 1
38 2
38 2
39 3
39 3
40 3
40 3
41 3
41 3
48 1
48 1
49 1
49 1
53 5
53 5
92 1
92 1
128 3
128 3
130 2
130 2
134 2
134 2
50984 1
50984 1
51106 1
51106 1
51107 3
51107 3
51108 3
51108 3
51109 2
51109 2
51110 2
51110 2
51111 1
51111 1
51112 1
51112 1
51113 2
51113 2
51114 2
51114 2
51115 3
51115 3
51116 2
51116 2
51117 2
51117 2
51118 1
51118 1
51121 2
51121 2
51122 1
51122 1
51123 2
51123 2
51125 5
51125 5
51126 5
51126 5
51127 3
51127 3
51128 2
51128 2
51129 2
51129 2
51130 8
51130 8
51131 6
51131 6
51132 8
51132 8
51133 2
51133 2
51134 2
51134 2
51135 8
51135 8
51136 8
51136 8
51137 8
51137 8
51138 2
51138 2
51139 2
51139 2
51140 6
51140 6
51141 6
51141 6
51142 6
51142 6
51143 3
51143 3
51144 2
51144 2
51145 7
51145 7
51146 6
51146 6
51147 4
51147 4
51148 1
51148 1
51149 1
51149 1
51150 1
51150 1
51152 2
51152 2
51153 2
51153 2
51154 3
51154 3
51155 1
51155 1
51156 8
51156 8
51157 6
51157 6
51158 6
51158 6
51159 4
51159 4
51160 5
51160 5
51450 3
51450 3
51451 3
51451 3
51565 1
51565 1
51567 2
51567 2
51574 2
51574 2
51575 2
51575 2
51576 3
51576 3
51577 1
51577 1
51582 4
51582 4
51583 6
51583 6
51584 4
51584 4
51585 2
51585 2
51586 1
51586 1