SELECT 
  product_id 
FROM 
  cscart_product_popularity 
WHERE 
  product_id IN (
    40598, 40597, 40592, 40593, 40594, 40595, 
    40596
  )

Query time 0.00115

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": 7,
          "filtered": 100,
          "attached_condition": "cscart_product_popularity.product_id in (40598,40597,40592,40593,40594,40595,40596)",
          "using_index": true
        }
      }
    ]
  }
}

Result

product_id
40592
40593
40594
40595
40596
40597
40598