SELECT 
  cscart_product_feature_variants.variant_id, 
  cscart_product_feature_variants.position, 
  cscart_product_feature_variants.color, 
  cscart_product_feature_variant_descriptions.variant 
FROM 
  cscart_product_feature_variants 
  LEFT JOIN cscart_product_feature_variant_descriptions ON cscart_product_feature_variants.variant_id = cscart_product_feature_variant_descriptions.variant_id 
  AND cscart_product_feature_variant_descriptions.lang_code = 'ar' 
WHERE 
  cscart_product_feature_variants.variant_id IN (
    8371, 8373, 8375, 8370, 8376, 8383, 8384, 
    8385, 8403, 8404, 8418, 8430, 8432, 
    8436, 8437, 8438, 8440, 8444, 8445, 
    8608, 8619, 8621, 8580, 8535, 8428, 
    8538, 8537, 8746
  ) 
ORDER BY 
  cscart_product_feature_variants.position ASC, 
  cscart_product_feature_variant_descriptions.variant ASC

Query time 0.00134

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "29.41"
    },
    "ordering_operation": {
      "using_temporary_table": true,
      "using_filesort": true,
      "nested_loop": [
        {
          "table": {
            "table_name": "cscart_product_feature_variants",
            "access_type": "range",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "variant_id"
            ],
            "key_length": "3",
            "rows_examined_per_scan": 28,
            "rows_produced_per_join": 28,
            "filtered": "100.00",
            "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_feature_variants`.`variant_id` in (8371,8373,8375,8370,8376,8383,8384,8385,8403,8404,8418,8430,8432,8436,8437,8438,8440,8444,8445,8608,8619,8621,8580,8535,8428,8538,8537,8746))",
            "cost_info": {
              "read_cost": "16.81",
              "eval_cost": "2.80",
              "prefix_cost": "19.61",
              "data_read_per_join": "31K"
            },
            "used_columns": [
              "variant_id",
              "color",
              "position"
            ]
          }
        },
        {
          "table": {
            "table_name": "cscart_product_feature_variant_descriptions",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "variant_id",
              "lang_code"
            ],
            "key_length": "9",
            "ref": [
              "softwarepirmam_hewadelivard_cscart_4.cscart_product_feature_variants.variant_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 28,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "7.00",
              "eval_cost": "2.80",
              "prefix_cost": "29.41",
              "data_read_per_join": "84K"
            },
            "used_columns": [
              "variant_id",
              "variant",
              "lang_code"
            ]
          }
        }
      ]
    }
  }
}

Result

variant_id position color variant
8430 0 Anua
8608 0 Avene
8432 0 Beauty of Joseon
8371 0 Beesline
8437 0 Bioderma
8440 0 Celimax
8418 0 Cerave
8619 0 Cetaphil
8373 0 Clarins
8384 0 Cosrx
8621 0 Eucerin
8376 0 Garnier
8436 0 ISISPharma
8385 0 La Roche-Posay
8580 0 Lancome
8438 0 Lierac
8535 0 Lysedia
8445 0 Mario Badescu
8404 0 Mixsoon
8428 0 Pixi
8370 0 Rimmel London
8444 0 S K I N 1 0 0 4
8538 0 Shiseido
8403 0 Simon Ourian
8375 0 Simple
8537 0 Sisley
8383 0 The Body Shop
8746 0 Vichy