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 = 'en' 
WHERE 
  pfv.variant_id IN (
    12768, 12800, 12782, 12802, 12804, 12806, 
    12624, 12627, 12634, 12646, 12648, 
    12650, 12652, 12654, 12656, 12658, 
    12879, 12881, 12883, 12885, 12887, 
    12889, 12891, 12893, 12829, 12895, 
    12897, 12899, 12901
  )

Query time 0.00047

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.08370839,
    "nested_loop": [
      {
        "table": {
          "table_name": "pfv",
          "access_type": "range",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "3",
          "used_key_parts": ["variant_id"],
          "loops": 1,
          "rows": 29,
          "cost": 0.05121603,
          "filtered": 100,
          "attached_condition": "pfv.variant_id in (12768,12800,12782,12802,12804,12806,12624,12627,12634,12646,12648,12650,12652,12654,12656,12658,12879,12881,12883,12885,12887,12889,12891,12893,12829,12895,12897,12899,12901)"
        }
      },
      {
        "table": {
          "table_name": "pfvd",
          "access_type": "eq_ref",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "9",
          "used_key_parts": ["variant_id", "lang_code"],
          "ref": ["u508912950_dev_2025.pfv.variant_id", "const"],
          "loops": 29,
          "rows": 1,
          "cost": 0.03249236,
          "filtered": 100,
          "attached_condition": "pfvd.lang_code = 'en'"
        }
      }
    ]
  }
}

Result

variant_id position variant
12624 0 Black
12627 0 Brown
12634 0 WHITE
12646 0 Bronze
12648 0 Gold/Green
12650 0 Rose/Purple
12652 0 01|
12654 0 03|
12656 0 Greyish/Black
12658 0 Soft Brown
12768 0 Fudge
12782 0 Almond
12800 0 Soft Honey
12802 0 Amber
12804 0 Crimson
12806 0 Latte
12829 0 Cranberry
12879 0 Radiant Beige
12881 0 Sheer Salmon
12883 0 Sunny Guava
12885 0 Exotic Red
12887 0 Hot Nude
12889 0 Nude Chocolate
12891 0 Soft Pink
12893 0 Burgundy
12895 0 Rosie Brown
12897 0 Magenta
12899 0 Orange
12901 0 Pink