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 (
    19936, 62197, 10351, 62198, 62216, 62217, 
    62218, 62220, 62221, 62230, 62232, 
    18263, 62242, 62247, 62245, 62243, 
    62244, 62222, 62224, 62226, 62227, 
    62225, 62223, 62202, 62203, 62207, 
    62204, 62208, 62228, 62231, 62241, 
    62236, 62238, 62233, 62229, 62239, 
    62234, 62235, 62240, 62386, 62387
  )

Query time 0.00089

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "33.44"
    },
    "nested_loop": [
      {
        "table": {
          "table_name": "pfv",
          "access_type": "range",
          "possible_keys": [
            "PRIMARY",
            "variant_feature_idx",
            "idx_var_feat_pos"
          ],
          "key": "idx_var_feat_pos",
          "used_key_parts": [
            "variant_id"
          ],
          "key_length": "3",
          "rows_examined_per_scan": 41,
          "rows_produced_per_join": 41,
          "filtered": "100.00",
          "using_index": true,
          "cost_info": {
            "read_cost": "4.83",
            "eval_cost": "4.10",
            "prefix_cost": "8.93",
            "data_read_per_join": "46K"
          },
          "used_columns": [
            "variant_id",
            "position"
          ],
          "attached_condition": "(`cscart_db`.`pfv`.`variant_id` in (19936,62197,10351,62198,62216,62217,62218,62220,62221,62230,62232,18263,62242,62247,62245,62243,62244,62222,62224,62226,62227,62225,62223,62202,62203,62207,62204,62208,62228,62231,62241,62236,62238,62233,62229,62239,62234,62235,62240,62386,62387))"
        }
      },
      {
        "table": {
          "table_name": "pfvd",
          "access_type": "eq_ref",
          "possible_keys": [
            "PRIMARY"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "variant_id",
            "lang_code"
          ],
          "key_length": "9",
          "ref": [
            "cscart_db.pfv.variant_id",
            "const"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 41,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "20.41",
            "eval_cost": "4.10",
            "prefix_cost": "33.44",
            "data_read_per_join": "306K"
          },
          "used_columns": [
            "variant_id",
            "variant",
            "lang_code"
          ]
        }
      }
    ]
  }
}

Result

variant_id position variant
10351 0 South Korea
18263 0 8
19936 0 6
62197 0 01 Fig Beige
62198 0 02 Soft Mauve
62202 0 01 Tangerine red
62203 0 02 Cherry red
62204 0 03 Real red
62207 0 06 Sweet potato red
62208 0 07 Red bean pink
62216 0 01 Real Cherry
62217 0 02 Plum Berry
62218 0 03 Neon Pink
62220 0 05 Red oil
62221 0 06 Pink oil
62222 0 01 Strawberry Ade
62223 0 03 Orange Ade
62224 0 04 Red Grapefruit Ade
62225 0 05 Grape Ade
62226 0 06 Pomegranate Ade
62227 0 07 Prune Ade
62228 0 01 Analog Rose
62229 0 03 Mellow Peach
62230 0 05 Midnight Mauve
62231 0 06 Soft Walnut
62232 0 07 Cranberry Plum
62233 0 08 Dusty Beige
62234 0 10 Smoky Cherry
62235 0 11 Rose Blending
62236 0 12 Salmon Brick
62238 0 15 Woody pink
62239 0 16 baked pecan
62240 0 19 Coral Breeze
62241 0 20 Pink Fig
62242 0 01 Rose Berry
62243 0 02 Forever Ruby
62244 0 03 Jealous Red
62245 0 04 Pink Wish
62247 0 06 Twilight Mauve
62386 0 Beginner
62387 0 0.15 Oz