SELECT 
  product_id 
FROM 
  cscart_product_popularity 
WHERE 
  product_id IN (
    51182, 51181, 51180, 51179, 51178, 51177
  )

Query time 0.00034

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "1.48"
    },
    "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": 6,
      "rows_produced_per_join": 6,
      "filtered": "100.00",
      "using_index": true,
      "cost_info": {
        "read_cost": "0.88",
        "eval_cost": "0.60",
        "prefix_cost": "1.48",
        "data_read_per_join": "192"
      },
      "used_columns": [
        "product_id"
      ],
      "attached_condition": "(`test_uchur_k`.`cscart_product_popularity`.`product_id` in (51182,51181,51180,51179,51178,51177))"
    }
  }
}

Result

product_id
51177
51178
51179
51180
51181
51182