SELECT 
  product_id, 
  feature_id, 
  variant_id 
FROM 
  cscart_product_features_values 
WHERE 
  product_id IN (
    16697, 16680, 16679, 16678, 16677, 16676, 
    16675, 16674, 16673, 16672, 16671, 
    16670, 16669, 16668, 16667, 16666, 
    16665, 16664, 5510
  ) 
  AND feature_id IN (20018) 
  AND lang_code = 'vi'

Query time 0.00337

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": 19,
          "filtered": 100,
          "attached_condition": "cscart_product_features_values.feature_id = 20018 and cscart_product_features_values.product_id in (16697,16680,16679,16678,16677,16676,16675,16674,16673,16672,16671,16670,16669,16668,16667,16666,16665,16664,5510) and cscart_product_features_values.lang_code = 'vi'",
          "using_index": true
        }
      }
    ]
  }
}

Result

product_id feature_id variant_id
5510 20018 69965
16664 20018 69965
16665 20018 69966
16666 20018 69967
16667 20018 69968
16668 20018 69969
16669 20018 69970
16670 20018 69971
16671 20018 69972
16672 20018 69973
16673 20018 69974
16674 20018 69975
16675 20018 69976
16676 20018 69977
16677 20018 69978
16678 20018 69979
16679 20018 69980
16680 20018 69981
16697 20018 69982