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 (
    1945, 1666, 2490, 2494, 2498, 2502, 2513, 
    2510, 2520, 2523, 2527, 2531, 2535, 
    2538, 2543, 5110, 4743, 7483, 2031
  ) 
ORDER BY 
  cscart_product_feature_variants.position ASC, 
  cscart_product_feature_variant_descriptions.variant ASC

Query time 0.00113

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "19.96"
    },
    "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": 19,
            "rows_produced_per_join": 19,
            "filtered": "100.00",
            "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_feature_variants`.`variant_id` in (1945,1666,2490,2494,2498,2502,2513,2510,2520,2523,2527,2531,2535,2538,2543,5110,4743,7483,2031))",
            "cost_info": {
              "read_cost": "11.41",
              "eval_cost": "1.90",
              "prefix_cost": "13.31",
              "data_read_per_join": "21K"
            },
            "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": 19,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "4.75",
              "eval_cost": "1.90",
              "prefix_cost": "19.96",
              "data_read_per_join": "57K"
            },
            "used_columns": [
              "variant_id",
              "variant",
              "lang_code"
            ]
          }
        }
      ]
    }
  }
}

Result

variant_id position color variant
2531 0 12 V DC ⎓ 1 A
2502 0 12 V DC, 4 A power adapter
2494 0 12 V DC ⎓ 1 A adapter
2538 0 12 V DC ⎓ 0.6 A
2543 0 12 V DC ⎓ 1 A adapter
2513 0 12 V DC ⎓ 1 A via adapter
2523 0 5 V DC ⎓ 1 A via external adapter (~5 W)
2031 0 AC input voltage: 100–240 V; AC input frequency: 50/60 Hz
1945 0 #ffffff Huawei
7483 0 #ffffff MIKROTIK
5110 0 #ffffff tp-link
4743 0 Ubiquiti Networks
2520 0 Wi‑Fi 4 (IEEE 802.11b/g/n), single‑band 2.4 GHz (2×2 up to 300 Mbps)
2498 0 Wi‑Fi 6 (IEEE 802.11ax) tri‑band
2527 0 Wi‑Fi 6 (IEEE 802.11ax), dual-band
2510 0 Wi‑Fi 5 (IEEE 802.11a/b/g/n/ac), dual-band simultaneous
2535 0 Wi‑Fi 5 (IEEE 802.11a/b/g/n/ac), dual‑band
2490 0 Wi‑Fi 6 (IEEE 802.11ax) dual‑band concurrent
1666 0 #ffffff Xiaomi