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 (
    1526, 
    1561, 
    1572, 
    1539, 
    1586, 
    1610, 
    1583, 
    1607, 
    1600, 
    1562, 
    1515, 
    1524, 
    1552, 
    1684, 
    1563, 
    1571, 
    1585, 
    1558, 
    1584, 
    1682, 
    6252, 
    6250, 
    1599, 
    1711, 
    1687, 
    1615, 
    1618, 
    1554, 
    1696, 
    1613, 
    1695, 
    1634, 
    1635, 
    1636, 
    1637, 
    1553, 
    1633, 
    1614, 
    1619, 
    1686, 
    1611, 
    1690, 
    1631, 
    1632, 
    1612, 
    1516, 
    1564, 
    1559, 
    1560, 
    1517, 
    1525, 
    1557, 
    1556, 
    1660, 
    1659, 
    1518, 
    1642, 
    1703, 
    1609, 
    1707, 
    1638, 
    1702, 
    1681, 
    1570, 
    1540, 
    1608, 
    1595, 
    1555, 
    2137, 
    4941, 
    2136, 
    1938, 
    2175, 
    2115, 
    1776, 
    3421, 
    1596, 
    1913, 
    2460, 
    6360, 
    1755, 
    2315, 
    5517, 
    1598, 
    6255, 
    1914, 
    6253, 
    6254, 
    6256, 
    6257, 
    6258, 
    6271, 
    6285, 
    6284, 
    6290, 
    7801, 
    7800, 
    7047, 
    6995, 
    7064, 
    1750, 
    2307, 
    6130, 
    7627, 
    2077, 
    7534, 
    6971, 
    1754, 
    1912, 
    2758, 
    1587, 
    7512, 
    7514, 
    7521, 
    7529, 
    1784, 
    7535, 
    6680, 
    7542, 
    1606, 
    2243, 
    2443, 
    6991, 
    3656, 
    7010, 
    3814, 
    1674, 
    7191, 
    3809, 
    1753, 
    5991, 
    9077, 
    1565, 
    8393, 
    8395, 
    8471, 
    5563, 
    9493, 
    3015, 
    1591
  ) 
ORDER BY 
  cscart_product_feature_variants.position ASC, 
  cscart_product_feature_variant_descriptions.variant ASC

Query time 0.00381

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "147.01"
    },
    "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": 140,
            "rows_produced_per_join": 140,
            "filtered": "100.00",
            "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_feature_variants`.`variant_id` in (1526,1561,1572,1539,1586,1610,1583,1607,1600,1562,1515,1524,1552,1684,1563,1571,1585,1558,1584,1682,6252,6250,1599,1711,1687,1615,1618,1554,1696,1613,1695,1634,1635,1636,1637,1553,1633,1614,1619,1686,1611,1690,1631,1632,1612,1516,1564,1559,1560,1517,1525,1557,1556,1660,1659,1518,1642,1703,1609,1707,1638,1702,1681,1570,1540,1608,1595,1555,2137,4941,2136,1938,2175,2115,1776,3421,1596,1913,2460,6360,1755,2315,5517,1598,6255,1914,6253,6254,6256,6257,6258,6271,6285,6284,6290,7801,7800,7047,6995,7064,1750,2307,6130,7627,2077,7534,6971,1754,1912,2758,1587,7512,7514,7521,7529,1784,7535,6680,7542,1606,2243,2443,6991,3656,7010,3814,1674,7191,3809,1753,5991,9077,1565,8393,8395,8471,5563,9493,3015,1591))",
            "cost_info": {
              "read_cost": "84.01",
              "eval_cost": "14.00",
              "prefix_cost": "98.01",
              "data_read_per_join": "159K"
            },
            "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": 140,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "35.00",
              "eval_cost": "14.00",
              "prefix_cost": "147.01",
              "data_read_per_join": "423K"
            },
            "used_columns": [
              "variant_id",
              "variant",
              "lang_code"
            ]
          }
        }
      ]
    }
  }
}

Result

variant_id position color variant
1571 0 #ffffff 11"
7542 0 120 Hz
7512 0 120 Hz (adaptive)
1540 0 #ffffff 120Hz
8393 0 120Hz ProMotion
1570 0 #ffffff 13"
2115 0 #ffffff 15"
1938 0 24"
8471 0 2 GB
9493 0 #ffffff 39mm
1612 0 #ffffff 40mm
1614 0 #ffffff 42mm
1611 0 #ffffff 44mm
1613 0 #ffffff 46mm
1615 0 #ffffff 49mm
1518 0 #ffffff 6.1"
1516 0 #ffffff 6.3"
6680 0 6.5"
1517 0 #ffffff 6.7"
1515 0 #ffffff 6.9"
1539 0 #ffffff 60Hz
1572 0 #ffffff 8.3"
1585 0 #ffffff A16 chip
1586 0 #ffffff A17 Pro chip
1525 0 #ffffff A18 chip
1524 0 #ffffff A18 Pro chip
7529 0 A19
7514 0 A19 Pro
8395 0 Apple A19 Bionic Chip
9077 0 Apple S-Series
6257 0 #d7e9db Aquamarine
1750 0 #4b5c09 Awesome Olive
3421 0 #f5f5dc Beige
1560 0 #000000 Black
5517 0 Black and blue
7191 0 Black and silver
3809 0 Black/Blue
3814 0 Black/Grey
6130 0 Black/White
1600 0 #4a86e8 Blue
3015 0 Bluetooth
1703 0 #ffffff Bluetooth 5.0
1702 0 #ffffff Bluetooth 5.3
7047 0 Bright red
1674 0 #783f04 Brown
7801 0 Capri blue
6271 0 Clear
2443 0 #ffffff Cloud White
2307 0 #e47c79 Coral
7521 0 #ff9900 Cosmic Orange
6360 0 Dark Green
7064 0 #0948c8 Deep blue
6995 0 Deep purple
6991 0 deep red
6250 0 Denim
6290 0 #5f6865 Evergreen
1598 0 #a7c6ed Frost Blue
6255 0 #b13e79 Fuchsia
2758 0 #ffd966 Gold
1912 0 #434343 Graphite
1914 0 #ffffff Gray
1596 0 #008000 Green
2077 0 #666666 Grey
1642 0 #ffffff H1 chip
1638 0 #ffffff H2 chip
5563 0 Jet Black
1784 0 #bcbcee Lavender
2243 0 #ffd966 Light Gold
7627 0 Light Grey
7800 0 Light Red
1584 0 #ffffff M3 chip
1583 0 #ffffff M4 chip
4941 0 M4 Pro, M4 Max chip
1599 0 #000000 Midnight Black
7535 0 #81abf6 Mist Blue
6284 0 #7f5362 Mulberry
1913 0 #1a1a2e Navy
1707 0 #ff9900 Orange
7010 0 Pale pink
6971 0 Pale yellow
5991 0 #f9d1c7 Peachy Pink
6254 0 #fc8cc4 Peony
6258 0 #7b8cc4 Periwinkle
6252 0 #3d2845 Plum
1609 0 #9900ff Purple
2315 0 #cc0000 Red
1695 0 S10 chip
1690 0 S8 chip
1618 0 #ffffff S9 SiP
7534 0 #b6d7a8 Sage
2460 0 #fce5cd Sandstone Beige
1607 0 #bdbdbd Silver
1606 0 #000000 Space Black
6256 0 #eee04c Star Fruit
6253 0 #fe7f6c Tangerine
6285 0 #9d7f67 Taupe
1556 0 #3f4a99 Ultramarine
1559 0 #ffffff White
3656 0 White/Silver
2175 0 Wi-Fi 6E and Bluetooth 5.3
1595 0 #fcd04d Yellow
1552 4 #fad5a5 Desert Titanium
1686 6 #ffffff 32GB
1687 7 #ffffff 64GB
1561 10 #ffffff 128GB
2136 10 #ffffff 14"
1619 10 #ffffff 1GB
1634 10 #62605f Jet Black Aluminum
1553 11 #c2bcb2 Natural Titanium
1555 12 #ffffff White Titanium
1554 13 #000000 Black Titanium
1696 15 1.5GB
2137 20 #ffffff 16"
1562 20 #ffffff 256GB
1711 20 2GB
1631 20 #ffffff Midnight Aluminum
1632 21 #ffffff Starlight Aluminum
1633 22 #ffffff Silver Aluminum
1563 30 #ffffff 512GB
1610 30 #ffffff Starlight
1608 31 #ffffff Space Gray
1681 32 #ffffff Light Purple
1682 33 #ffffff Light Blue
1564 40 #ffffff 1TB
1684 40 4GB
1565 50 #ffffff 2TB
1591 50 #ffffff 6GB
1526 60 #ffffff 8GB
1557 70 #badcdb Teal
1587 80 #ffffff 12GB
1558 80 #f3b2dc Pink
1659 90 #f0f0f0 Frost white
1660 100 #1b1c20 Frost Black
1635 100 #ffffff Rose Gold Aluminum
1636 101 #ffffff Slate Titanium
1637 102 #ffffff Gold Titanium
1755 125 #20365d Navy Blue
1754 127 #d7e7da Light Green
1753 128 #d7dfea Ice Blue
1776 1148 #9fc5e8 Sky Blue