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 (
    12566, 12568, 12788, 12812, 12790, 12624, 
    12627, 12843, 12845, 12847, 12849, 
    12851, 12853, 12929, 12930, 12528, 
    12544, 12545, 12537, 12541, 12542, 
    13064, 12543
  )

Query time 0.00024

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.06790901,
    "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": 23,
          "cost": 0.04078329,
          "filtered": 100,
          "attached_condition": "pfv.variant_id in (12566,12568,12788,12812,12790,12624,12627,12843,12845,12847,12849,12851,12853,12929,12930,12528,12544,12545,12537,12541,12542,13064,12543)"
        }
      },
      {
        "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": 23,
          "rows": 1,
          "cost": 0.02712572,
          "filtered": 100,
          "attached_condition": "pfvd.lang_code = 'en'"
        }
      }
    ]
  }
}

Result

variant_id position variant
12528 0 Black
12537 0 Orange
12541 0 XS
12542 10 S
12543 20 M
12544 30 L
12545 40 XL
12566 10 3ml
12568 30 10ml
12624 0 Black
12627 0 Brown
12788 0 Dark
12790 0 Light
12812 0 Fair
12843 0 Berry
12845 0 Blossom
12847 0 Cinnamon
12849 0 COral
12851 0 Ginger
12853 0 Nude
12929 0 Soft Rose
12930 0 Dark Green
13064 0 Gray