SELECT 
  product_id 
FROM 
  cscart_product_popularity 
WHERE 
  product_id IN (51243, 51242, 51241, 51240, 51239)

Query time 0.00032

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "1.28"
    },
    "table": {
      "table_name": "cscart_product_popularity",
      "access_type": "range",
      "possible_keys": [
        "PRIMARY",
        "total"
      ],
      "key": "PRIMARY",
      "used_key_parts": [
        "product_id"
      ],
      "key_length": "3",
      "rows_examined_per_scan": 5,
      "rows_produced_per_join": 5,
      "filtered": "100.00",
      "using_index": true,
      "cost_info": {
        "read_cost": "0.78",
        "eval_cost": "0.50",
        "prefix_cost": "1.28",
        "data_read_per_join": "160"
      },
      "used_columns": [
        "product_id"
      ],
      "attached_condition": "(`test_uchur_k`.`cscart_product_popularity`.`product_id` in (51243,51242,51241,51240,51239))"
    }
  }
}

Result

product_id
51239
51240
51241
51242
51243