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, 12770, 12772, 12773, 12775, 12794, 
    12779, 12796, 12798, 12788, 12812, 
    12790, 12624, 12627, 12632, 12661, 
    12662, 12664, 12843, 12845, 12847, 
    12849, 12851, 12853, 12858, 12860, 
    12862
  )

Query time 0.00028

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.07844193,
    "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": 27,
          "cost": 0.04773845,
          "filtered": 100,
          "attached_condition": "pfv.variant_id in (12768,12770,12772,12773,12775,12794,12779,12796,12798,12788,12812,12790,12624,12627,12632,12661,12662,12664,12843,12845,12847,12849,12851,12853,12858,12860,12862)"
        }
      },
      {
        "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": 27,
          "rows": 1,
          "cost": 0.03070348,
          "filtered": 100,
          "attached_condition": "pfvd.lang_code = 'en'"
        }
      }
    ]
  }
}

Result

variant_id position variant
12624 0 Black
12627 0 Brown
12632 0 GREY
12661 0 Brown
12662 0 Light Brown
12664 0 ANTHRAZITE
12768 0 Fudge
12770 0 Natural
12772 0 Nude
12773 0 Terra Cotta
12775 0 Porcelian
12779 0 Ivory
12788 0 Dark
12790 0 Light
12794 0 Beige
12796 0 Mahagony
12798 0 Sand
12812 0 Fair
12843 0 Berry
12845 0 Blossom
12847 0 Cinnamon
12849 0 COral
12851 0 Ginger
12853 0 Nude
12858 0 Nude Touche
12860 0 Scarlett Heart
12862 0 Teddy