SELECT 
  product_id 
FROM 
  cscart_product_popularity 
WHERE 
  product_id IN (
    20624, 20623, 20622, 20621, 20620, 20619, 
    20618, 20617, 2943
  )

Query time 0.00072

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": 9,
          "filtered": 100,
          "attached_condition": "cscart_product_popularity.product_id in (20624,20623,20622,20621,20620,20619,20618,20617,2943)",
          "using_index": true
        }
      }
    ]
  }
}

Result

product_id
2943
20617
20618
20619
20620
20621
20622
20623
20624