SELECT 
  product_id 
FROM 
  cscart_product_popularity 
WHERE 
  product_id IN (
    18509, 18510, 18511, 18513, 18514, 18515, 
    18516, 18517, 18518, 18519
  )

Query time 0.00018

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.01134437,
    "nested_loop": [
      {
        "table": {
          "table_name": "cscart_product_popularity",
          "access_type": "range",
          "possible_keys": ["PRIMARY", "total"],
          "key": "total",
          "key_length": "3",
          "used_key_parts": ["product_id"],
          "loops": 1,
          "rows": 10,
          "cost": 0.01134437,
          "filtered": 100,
          "attached_condition": "cscart_product_popularity.product_id in (18509,18510,18511,18513,18514,18515,18516,18517,18518,18519)",
          "using_index": true
        }
      }
    ]
  }
}

Result

product_id
18509
18510
18511
18513
18514
18515
18516
18517
18518
18519