SELECT 
  product_id 
FROM 
  cscart_product_popularity 
WHERE 
  product_id IN (
    232, 786968, 786969, 786970, 786971, 
    786972, 786973, 786974
  )

Query time 0.00021

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.01470144,
    "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"],
          "loops": 1,
          "rows": 8,
          "cost": 0.01470144,
          "filtered": 100,
          "attached_condition": "cscart_product_popularity.product_id in (232,786968,786969,786970,786971,786972,786973,786974)"
        }
      }
    ]
  }
}

Result

product_id
232
786968
786969
786970
786971
786972
786973
786974