SELECT 
  product_id 
FROM 
  cscart_product_popularity 
WHERE 
  product_id IN (
    7059, 7058, 7057, 6862, 3304, 6852, 3309, 
    6865, 6856, 6849, 3298, 3297, 6845, 
    3299, 6863, 6853, 3308, 3314, 6857, 
    3310, 6858
  )

Query time 0.00047

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "4.56"
    },
    "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": 21,
      "rows_produced_per_join": 21,
      "filtered": "100.00",
      "using_index": true,
      "cost_info": {
        "read_cost": "2.46",
        "eval_cost": "2.10",
        "prefix_cost": "4.56",
        "data_read_per_join": "672"
      },
      "used_columns": [
        "product_id"
      ],
      "attached_condition": "(`gaseus`.`cscart_product_popularity`.`product_id` in (7059,7058,7057,6862,3304,6852,3309,6865,6856,6849,3298,3297,6845,3299,6863,6853,3308,3314,6857,3310,6858))"
    }
  }
}

Result

product_id
3297
3298
3299
3304
3308
3309
3310
3314
6845
6849
6852
6853
6856
6857
6858
6862
6863
6865
7057
7058
7059