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 (
    12819, 12821, 12823, 12825, 12827, 12829, 
    12831, 12833, 12835, 12837, 12839, 
    12841, 12843, 12845, 12847, 12849, 
    12851, 12853, 12854, 12856, 12858, 
    12860, 12862, 12864, 12866, 12868, 
    12870, 12872, 12873, 12875, 12877, 
    12879, 12881, 12883, 12885, 12887, 
    12889, 12891, 12893, 12895, 12897, 
    12899, 12901, 12903, 12905, 12907, 
    12909, 12911, 12913, 12915
  )

Query time 0.00040

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.13900622,
    "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": 50,
          "cost": 0.08773062,
          "filtered": 100,
          "attached_condition": "pfv.variant_id in (12819,12821,12823,12825,12827,12829,12831,12833,12835,12837,12839,12841,12843,12845,12847,12849,12851,12853,12854,12856,12858,12860,12862,12864,12866,12868,12870,12872,12873,12875,12877,12879,12881,12883,12885,12887,12889,12891,12893,12895,12897,12899,12901,12903,12905,12907,12909,12911,12913,12915)"
        }
      },
      {
        "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": 50,
          "rows": 1,
          "cost": 0.0512756,
          "filtered": 100,
          "attached_condition": "pfvd.lang_code = 'en'"
        }
      }
    ]
  }
}

Result

variant_id position variant
12819 0 Brink Pink
12821 0 Carnal
12823 0 Cerise
12825 0 Chinchilla
12827 0 Corset
12829 0 Cranberry
12831 0 Force
12833 0 Milk Ch.
12835 0 Ottawa Garnet
12837 0 Shell
12839 0 Truffle
12841 0 Wild Red
12843 0 Berry
12845 0 Blossom
12847 0 Cinnamon
12849 0 COral
12851 0 Ginger
12853 0 Nude
12854 0 Bordeaux
12856 0 Magic Fuchsia
12858 0 Nude Touche
12860 0 Scarlett Heart
12862 0 Teddy
12864 0 Extreme Nude
12866 0 Mauve
12868 0 Mellow
12870 0 Nude Elegance
12872 0 Ottawa Gamet
12873 0 Spice
12875 0 Sugar Chic
12877 0 Trap
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
12903 0 Angel Pink
12905 0 Candy Pink
12907 0 Champagne Pink
12909 0 Clear
12911 0 Glamour Pink
12913 0 Pale Pink
12915 0 Sugar Plum