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 (
    87431, 87429, 87430, 87443, 87442, 87441, 
    87446, 87445, 87444, 87449, 87448, 
    87447
  )

Query time 0.00573

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": 12,
          "filtered": 100,
          "index_condition": "pfv.variant_id in (87431,87429,87430,87443,87442,87441,87446,87445,87444,87449,87448,87447)"
        }
      },
      {
        "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
87429 1 Tone Xanh
87430 2 Tone Đen/Xám
87431 3 Màu ngẫu nhiên
87441 1 Size S
87442 2 Size M
87443 3 Size L
87444 0 Size S
87445 0 Size M
87446 0 Size L
87447 0 Size S
87448 0 Size M
87449 0 Size L