SELECT 
  product_id, 
  feature_id, 
  variant_id 
FROM 
  cscart_product_features_values 
WHERE 
  product_id IN (
    16518, 16517, 16516, 16515, 16514, 16513, 
    16512, 16511, 5623
  ) 
  AND feature_id IN (19978) 
  AND lang_code = 'vi'

Query time 0.00102

JSON explain

{
  "query_block": {
    "select_id": 1,
    "nested_loop": [
      {
        "table": {
          "table_name": "cscart_product_features_values",
          "access_type": "range",
          "possible_keys": [
            "PRIMARY",
            "fl",
            "lang_code",
            "product_id",
            "fpl",
            "idx_product_feature_variant_id"
          ],
          "key": "idx_product_feature_variant_id",
          "key_length": "12",
          "used_key_parts": ["product_id", "feature_id", "lang_code"],
          "rows": 9,
          "filtered": 100,
          "attached_condition": "cscart_product_features_values.feature_id = 19978 and cscart_product_features_values.product_id in (16518,16517,16516,16515,16514,16513,16512,16511,5623) and cscart_product_features_values.lang_code = 'vi'",
          "using_index": true
        }
      }
    ]
  }
}

Result

product_id feature_id variant_id
5623 19978 69822
16511 19978 69814
16512 19978 69815
16513 19978 69816
16514 19978 69817
16515 19978 69818
16516 19978 69819
16517 19978 69820
16518 19978 69821