SELECT 
  pfv.variant_id, 
  pfv.position, 
  pfvd.variant 
FROM 
  cscart_product_feature_variants AS pfv 
  INNER JOIN cscart_product_feature_variant_descriptions AS pfvd ON pfv.variant_id = pfvd.variant_id 
  AND pfvd.lang_code = 'vi' 
WHERE 
  pfv.variant_id IN (
    86164, 86163, 87193, 86162, 86165, 86166, 
    86167, 86218, 86219, 86220, 87235, 
    87190, 87191, 87192, 87199, 87200, 
    87197, 87198
  )

Query time 0.01644

JSON explain

{
  "query_block": {
    "select_id": 1,
    "nested_loop": [
      {
        "table": {
          "table_name": "pfv",
          "access_type": "range",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "3",
          "used_key_parts": ["variant_id"],
          "rows": 18,
          "filtered": 100,
          "index_condition": "pfv.variant_id in (86164,86163,87193,86162,86165,86166,86167,86218,86219,86220,87235,87190,87191,87192,87199,87200,87197,87198)"
        }
      },
      {
        "table": {
          "table_name": "pfvd",
          "access_type": "eq_ref",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "9",
          "used_key_parts": ["variant_id", "lang_code"],
          "ref": ["dev_db.pfv.variant_id", "const"],
          "rows": 1,
          "filtered": 100,
          "index_condition": "pfvd.lang_code = 'vi'"
        }
      }
    ]
  }
}

Result

variant_id position variant
86162 4 Nâu camel
86163 3 Nâu đậm
86164 1 Tím
86165 1 Nâu camel
86166 2 Nâu đậm
86167 3 Tím
86218 1 Tím
86219 2 Nâu đậm
86220 3 Đen
87190 1 1. Đen
87191 2 2. Nâu đậm
87192 3 3. Tím
87193 2 Đen
87197 1 Đen
87198 2 Nâu đậm
87199 3 Tím
87200 4 Nâu Camel
87235 4 Nâu Camel