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 (
    1560, 3552, 2976, 2979, 3544, 1559, 3547, 
    1600, 2973, 2975, 3278, 3282, 3533, 
    2985, 2862, 3528, 3543, 3538, 2589, 
    2597, 1596, 1610, 3557, 2717, 2814, 
    2696, 1776, 2672, 1766, 2968, 3022, 
    3025, 3582, 1783, 3561, 2831, 1750, 
    3565, 2077, 2667, 2662, 2658, 2713, 
    2707, 2622, 1889, 2617, 2628, 2635, 
    2749, 2792, 2798, 2809, 2980, 2983, 
    3513, 2993, 3089, 3091, 2774, 3195, 
    3200, 3234, 3238, 1755, 1682, 1558, 
    3239, 3242, 3332, 3263, 3266, 3283, 
    3303, 2895, 3326, 3327, 3330, 1609, 
    3335, 3470, 3484, 3494, 3499, 2315, 
    3503, 1748, 3507, 3510, 1790, 3516, 
    3570, 3577, 3581, 3594
  ) 
ORDER BY 
  cscart_product_feature_variants.position ASC, 
  cscart_product_feature_variant_descriptions.variant ASC

Query time 0.00349

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "99.76"
    },
    "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": 95,
            "rows_produced_per_join": 95,
            "filtered": "100.00",
            "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_feature_variants`.`variant_id` in (1560,3552,2976,2979,3544,1559,3547,1600,2973,2975,3278,3282,3533,2985,2862,3528,3543,3538,2589,2597,1596,1610,3557,2717,2814,2696,1776,2672,1766,2968,3022,3025,3582,1783,3561,2831,1750,3565,2077,2667,2662,2658,2713,2707,2622,1889,2617,2628,2635,2749,2792,2798,2809,2980,2983,3513,2993,3089,3091,2774,3195,3200,3234,3238,1755,1682,1558,3239,3242,3332,3263,3266,3283,3303,2895,3326,3327,3330,1609,3335,3470,3484,3494,3499,2315,3503,1748,3507,3510,1790,3516,3570,3577,3581,3594))",
            "cost_info": {
              "read_cost": "57.01",
              "eval_cost": "9.50",
              "prefix_cost": "66.51",
              "data_read_per_join": "108K"
            },
            "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": 95,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "23.75",
              "eval_cost": "9.50",
              "prefix_cost": "99.76",
              "data_read_per_join": "287K"
            },
            "used_columns": [
              "variant_id",
              "variant",
              "lang_code"
            ]
          }
        }
      ]
    }
  }
}

Result

variant_id position color variant
3327 0 1 x USB-C Cable
3484 0 220 - 240 V AC, 50/60 Hz
2667 0 4‑LED battery-level indicator
3335 0 A 4-LED battery level indicator
3022 0 Adaptive ANC processor
2985 0 #b4a7d6 Aurora Purple
1750 0 #4b5c09 Awesome Olive
1748 0 #f1c6c6 Awesome Pink
3516 0 Basic LED indicator lights (4 LEDs for battery level)
2792 0 Basic LED indicator lights (no digital screen)
1560 0 #000000 Black
1600 0 #4a86e8 Blue
3091 0 Bluetoot 5.0 ( sometimes listed as 5.2)
2976 0 Bluetooth 5.0 chipset (no proprietary chip)
2979 0 Bluetooth 5.0 with a range of 10 meters
3557 0 Bluetooth 5.0, 3.5mm AUX input, multipoint pairing
3552 0 Bluetooth 5.0, 3.5mm AUX, multipoint pairing
3513 0 Bluetooth 5.0, 3.5 mm AUX input
3507 0 Bluetooth 5.0, supports SBC, AAC and LDAC codec, with a range of up to 10 meters
2774 0 Bluetooth 5.0, with a range of 10 meters
3195 0 Bluetooth 5.3 (up to ~20 m/66 ft range) MicroSD card slot, 3.5 mm AUX input, and FM radio support
2973 0 Bluetooth 5.3 chipset
3470 0 Bluetooth 5.3 with a range of 10 meters
3326 0 Bluetooth 5.3 with a range of abour 10 meters
3528 0 Bluetooth 5.3 with a range of about 100 meters, USB-C input, USB-A output
3503 0 Bluetooth 5.3 with a range of about 15 meters, supports multipoint pairing
3499 0 Bluetooth 5.3 with multipoint pairing, a range of 10 meters, supports SBC and AAC codecs
3282 0 Bluetooth 5.3 with multipoint pairing, LDAC for high resolution audio, has a range of 10 meters
3266 0 Bluetooth 5.3 with multipoint pairing, supports SBC, AAC, and LDAC, a range of up to 15 meters
3594 0 Bluetooth 5.3 with support for SBC and AAC codes, a range of 10 meters
3570 0 Bluetooth 5.3, 3.5mm AUX input, 360° sound with PartyCast 2.0 for syncing over 100 speakers, has a range of up to
3538 0 Bluetooth 5.3, 3.5mm AUX input, TF (microSD) card slot, TWS pairing
3533 0 Bluetooth 5.3, 3.5mm AUX input, USB‑A output (supports PartyCast 2.0 for chaining up to 100 speakers)
3025 0 Bluetooth 5.3, can connect two devices at the same time
3510 0 Bluetooth 5.3, can connect two devices at the same time, 3.5mm AUX
3577 0 Bluetooth 5.3, Fast Pair
3238 0 Bluetooth 5.3, has a range of up to 10 meters
3561 0 Bluetooth 5.3, multipoint pairing, SBC and AAC codes supported (10 meter range)
2975 0 Bluetooth 5.3, offering stable connections up to 10 meters
3565 0 Bluetooth 5.3, support for LDAC, SBC, AAC codes, features TWS pairing for stereo sound
2980 0 Bluetooth 5.4 chipset
3330 0 Bluetooth 5.4 has multipoint support, with a range of 10 meters
3494 0 Bluetooth 5.4 with a range of up to 10 meters
2983 0 Bluetooth 5.4 with up to 10 meters range
3581 0 Bluetooth 5.4, supports SBC and AAC, a range of 10 meters
3332 0 Bluetooth 5.4, with a range of 30 meters
3239 0 Bluetooth 5.0 chipset (SBC/AAC), includes hybrid ANC controller
3242 0 Bluetooth 5.0, multipoint connection (2 devices)
3234 0 Bluetooth 5.3 chipset (SBC, AAC, LDAC) with Adaptive ANC 2.0
3263 0 Bluetooth 5.3 chipset with LDAC support and adaptive ANC
3278 0 Bluetooth 5.3 chipset with support for SBC, AAC, LDAC, featuring in ear detection and ACAA sound processing
2968 0 Bluettoth 4.2, with a range of 20 meters
3283 0 Built in smart LCD showing real-time power/status information with alerts
3547 0 Built in USB cable, USB-C, USB-A
2628 0 Built-in smart screen shows real-time input/output wattage, battery %, and estimated runtime/recharge time
2635 0 Color LCD showing battery level and charging status
2713 0 Color LCD showing battery level and estimated remaining time
2589 0 Color LCD showing battery level and estimated run/charge time
3543 0 Connects to iPad via Bluetooth 5.3
1790 0 #f2e1c1 Creamy
1783 0 #154584 Dark blue
1889 0 #4c4d4d Dark Gray
3544 0 Digital display showing remanining battery percentage, estimated time to full charge
2798 0 Digital LED battery level indicator
2809 0 Digital LED battery-level indicator
2672 0 Digital percentage display
1766 0 #d4af37 Golden
1596 0 #008000 Green
2077 0 #666666 Grey
2658 0 Intelligent color digital display showing battery level and charging status
2597 0 LCD screen showing battery level and estimated time remaining
2717 0 LCD screen showing battery percentage and estimated remaining time
2749 0 LED/LCD battery status, usage time display
2993 0 #97d8a1 Mint Green
2707 0 None, charge status via LED indicators and magnetic contact alignment feedback
2662 0 None; uses a simple 4-LED battery-level indicator
3582 0 None; uses a simple 4‑LED battery-level indicator
1609 0 #9900ff Purple
2617 0 Real-time input power (W), Real-time output power (W), Remaining battery percentage, Estimated remaining runtime or recharge time
2315 0 #cc0000 Red
2622 0 Smart color display showing real-time input/output (W), battery %, estimated runtime & recharge time
2814 0 Smart digital (TFT/OLED) display showing real-time battery level, input/output wattage, and power flow
2831 0 Smart digital TFT display with battery %, input/output wattage, charge time, and mode
3089 0 Standard Bluetooth 5.0/5.2 chipset
2696 0 USB-A to USB-C
2895 0 USB-C to Lightning Cable
2862 0 USB-C to USB-C
3303 0 USB‑C & USB‑A data (up to 10 Gbps), HDMI for dual displays, Ethernet (Gigabit), SD/microSD slots and audio jack
3200 0 USB‑C up to 5 Gbps USB‑A up to 5 Gbps/480 Mbps Ethernet (1 Gbps) SD/microSD (UHS-I) HDMI & VGA video outputs
1559 0 #ffffff White
1610 30 #ffffff Starlight
1682 33 #ffffff Light Blue
1558 80 #f3b2dc Pink
1755 125 #20365d Navy Blue
1776 1148 #9fc5e8 Sky Blue