SELECT 
  product_id 
FROM 
  cscart_product_popularity 
WHERE 
  product_id IN (
    36310, 36332, 36333, 36334, 36335, 36336, 
    36337, 36338, 36331, 36330, 36328, 
    36327, 36326, 36325, 36324, 36323, 
    36322, 36321, 36320, 36319, 36318, 
    36317, 36316
  )

Query time 0.00137

JSON explain

{
  "query_block": {
    "select_id": 1,
    "nested_loop": [
      {
        "table": {
          "table_name": "cscart_product_popularity",
          "access_type": "range",
          "possible_keys": ["PRIMARY", "total"],
          "key": "PRIMARY",
          "key_length": "3",
          "used_key_parts": ["product_id"],
          "rows": 23,
          "filtered": 100,
          "attached_condition": "cscart_product_popularity.product_id in (36310,36332,36333,36334,36335,36336,36337,36338,36331,36330,36328,36327,36326,36325,36324,36323,36322,36321,36320,36319,36318,36317,36316)",
          "using_index": true
        }
      }
    ]
  }
}

Result

product_id
36310
36316
36317
36318
36319
36320
36321
36322
36323
36324
36325
36326
36327
36328
36330
36331
36332
36333
36334
36335
36336
36337
36338