SELECT 
  product_id 
FROM 
  cscart_product_popularity 
WHERE 
  product_id IN (
    7502, 7503, 7584, 7585, 7622, 7623, 7660, 
    7661, 7698, 7699, 1439, 5147, 5148, 
    5146, 5145, 1438, 1436, 1437, 1435, 
    1434, 3721
  )

Query time 0.00125

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 (7502,7503,7584,7585,7622,7623,7660,7661,7698,7699,1439,5147,5148,5146,5145,1438,1436,1437,1435,1434,3721))"
    }
  }
}

Result

product_id
1434
1435
1436
1437
1438
1439
3721
5145
5146
5147
5148
7502
7503
7584
7585
7622
7623
7660
7661
7698
7699