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 = 'en' 
WHERE 
  cscart_product_feature_variants.variant_id IN (
    121, 
    87, 
    21682, 
    21703, 
    18902, 
    18937, 
    18940, 
    18943, 
    22756, 
    22766, 
    22778, 
    22785, 
    22797, 
    21673, 
    21739, 
    23265, 
    22796, 
    21727, 
    19358, 
    22902, 
    22903, 
    21677, 
    21731, 
    18936, 
    19015, 
    19242, 
    19288, 
    23267, 
    23269, 
    23270, 
    23298, 
    23299, 
    23300, 
    23301, 
    23302, 
    19377, 
    22782, 
    22809, 
    22836, 
    22868, 
    21676, 
    21804, 
    18934, 
    23340, 
    20257, 
    22753, 
    22768, 
    22780, 
    22800, 
    22828, 
    21765, 
    18903, 
    18933, 
    18942, 
    19227, 
    23208, 
    23268, 
    23333, 
    23336, 
    23420, 
    23421, 
    23422, 
    23423, 
    23424, 
    19824, 
    22755, 
    22774, 
    22784, 
    22798, 
    22827, 
    22835, 
    22867, 
    22871, 
    21675, 
    21733, 
    18941, 
    19002, 
    23209, 
    19383, 
    19375, 
    22801, 
    22869, 
    23303, 
    21725, 
    21658, 
    21882, 
    21670, 
    18938, 
    21669, 
    21615, 
    22401, 
    19254, 
    23189, 
    23320, 
    22770, 
    23002, 
    23005, 
    23319, 
    23326, 
    19253, 
    23264, 
    23329, 
    23330, 
    23331, 
    23332, 
    23334, 
    23335, 
    22763, 
    22786, 
    22870, 
    23000, 
    21557, 
    22623, 
    19239, 
    19245, 
    23006, 
    21545, 
    21605, 
    21607, 
    18900, 
    22582, 
    18848, 
    21563, 
    21564, 
    21722, 
    21549, 
    21601, 
    21702, 
    23040, 
    18866, 
    18860, 
    22773, 
    23035, 
    18817, 
    22775, 
    21602, 
    18882, 
    22769, 
    21717, 
    21599, 
    23042, 
    23368, 
    23004, 
    23378, 
    18816, 
    23321, 
    23341, 
    23349, 
    22724, 
    22779, 
    23350, 
    23034, 
    23046, 
    21574, 
    23367, 
    23043, 
    21710, 
    23375, 
    22781, 
    23377, 
    23407, 
    21572, 
    21761, 
    19046, 
    19198, 
    23057, 
    23066, 
    23401
  ) 
ORDER BY 
  cscart_product_feature_variants.position ASC, 
  cscart_product_feature_variant_descriptions.variant ASC

Query time 0.00180

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "604.81"
    },
    "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": 168,
            "rows_produced_per_join": 168,
            "filtered": "100.00",
            "index_condition": "(`danishecarter_latest`.`cscart_product_feature_variants`.`variant_id` in (121,87,21682,21703,18902,18937,18940,18943,22756,22766,22778,22785,22797,21673,21739,23265,22796,21727,19358,22902,22903,21677,21731,18936,19015,19242,19288,23267,23269,23270,23298,23299,23300,23301,23302,19377,22782,22809,22836,22868,21676,21804,18934,23340,20257,22753,22768,22780,22800,22828,21765,18903,18933,18942,19227,23208,23268,23333,23336,23420,23421,23422,23423,23424,19824,22755,22774,22784,22798,22827,22835,22867,22871,21675,21733,18941,19002,23209,19383,19375,22801,22869,23303,21725,21658,21882,21670,18938,21669,21615,22401,19254,23189,23320,22770,23002,23005,23319,23326,19253,23264,23329,23330,23331,23332,23334,23335,22763,22786,22870,23000,21557,22623,19239,19245,23006,21545,21605,21607,18900,22582,18848,21563,21564,21722,21549,21601,21702,23040,18866,18860,22773,23035,18817,22775,21602,18882,22769,21717,21599,23042,23368,23004,23378,18816,23321,23341,23349,22724,22779,23350,23034,23046,21574,23367,23043,21710,23375,22781,23377,23407,21572,21761,19046,19198,23057,23066,23401))",
            "cost_info": {
              "read_cost": "369.61",
              "eval_cost": "33.60",
              "prefix_cost": "403.21",
              "data_read_per_join": "443K"
            },
            "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": [
              "danishecarter_latest.cscart_product_feature_variants.variant_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 168,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "168.00",
              "eval_cost": "33.60",
              "prefix_cost": "604.81",
              "data_read_per_join": "507K"
            },
            "used_columns": [
              "variant_id",
              "variant",
              "lang_code"
            ]
          }
        }
      ]
    }
  }
}

Result

variant_id position color variant
23004 0 #ffffff 1
18936 0 #ffffff 1 (None)
23005 0 #ffffff 2
23006 0 #ffffff 3
23319 0 3
18934 0 #ffffff 3 (Yellow)
22871 0 #ffffff 360° camera
23350 0 4
18933 0 #ffffff 4 (Green)
23040 0 #ffffff 4x2
23000 0 #ffffff 5
19358 0 #ffffff 595
23042 0 #ffffff 6x2
23043 0 #ffffff 6x4
23002 0 #ffffff 7
23046 0 #ffffff 8x6
18902 0 #ffffff A/C (man.)
21727 0 #ffffff ABARTH
19227 0 #ffffff ABS
22786 0 #ffffff Adaptive Cruise Control
21882 0 #ffffff AHLMANN
19245 0 #ffffff Air Suspension
21731 0 #ffffff AIXAM
22784 0 #ffffff All wheel drive
21733 0 #ffffff ALPINA
23340 0 armRest
21739 0 #ffffff ASTON MARTIN
22768 0 #ffffff Automatic
18903 0 #ffffff Automatic air conditioning
23336 0 automaticRainSensor
23189 0 auxiliaryHeating
23335 0 awning
19383 0 #ffffff B3
22769 0 #ffffff Black
22827 0 #ffffff Black
22775 0 #ffffff Blue
21545 0 #ffffff Box
23407 0 BoxTruck
23401 0 BoxVan
22902 0 #ffffff Buy
21673 0 #ffffff Cabriolet / Roadster
22869 0 #ffffff Camera
23420 0 carplay
21574 0 #ffffff Cement mixer
23269 0 centralLocking
21549 0 #ffffff Chassis
23377 0 ChassisTruck
21761 0 #ffffff CITROEN
19375 0 #ffffff City
22836 0 #ffffff Cloth
21682 0 #ffffff Coaches
21658 0 #ffffff Combined Dredger Loader
21669 0 #ffffff Compactor
23303 0 ConstructionMachine_OtherSubstructure
19377 0 #ffffff Cross
22785 0 #ffffff Cruise control
21765 0 #ffffff DACIA
21702 0 #ffffff DAF
23265 0 DB9
21605 0 #ffffff Deep-freeze transporter
22401 0 #ffffff DETHLEFFS
22797 0 #ffffff Diesel
19239 0 #ffffff Disk Brake
21703 0 #ffffff DROEGMOELLER
19824 0 #ffffff Duster
22800 0 #ffffff Electric
23298 0 electricExteriorMirrors
23268 0 electricHeatedSeats
23267 0 electricWindows
19242 0 #ffffff ESP
19015 0 #ffffff EU Edition
22753 0 #ffffff Euro3
22755 0 #ffffff Euro5
22756 0 #ffffff Euro6
18937 0 #ffffff Fixed
18816 0 #ffffff FLIEGL
18817 0 #ffffff FORD
23320 0 frenchBed
22867 0 #ffffff Front
22782 0 #ffffff Front wheel drive
23423 0 frontFogLights
19002 0 #ffffff Germany
22724 0 #ffffff GINAF
22774 0 #ffffff Green
22770 0 #ffffff Grey
22828 0 #ffffff Grey
23066 0 #ffffff H1
23422 0 handsFreePhoneSystem
21599 0 #ffffff Hazardous load
23421 0 heatedSteeringWheel
23332 0 highBeamAssist
19046 0 #ffffff Hungary
22801 0 #ffffff Hybrid (petrol/electric)
21710 0 #ffffff IVECO
22582 0 #ffffff KEL-BERG
21804 0 #ffffff KIA
18848 0 #ffffff KRONE
22903 0 #ffffff Leasing
23300 0 leatherSteeringWheel
23299 0 lightSensor
23034 0 #ffffff Local traffic
23035 0 #ffffff Long distance traffic
22798 0 #ffffff LPG
18860 0 #ffffff MAN
22766 0 #ffffff Manual gearbox
18866 0 #ffffff MERCEDES-BENZ
23334 0 middleSeatingArrangement
23302 0 multifunctionalWheel
23264 0 navigationPreparation
23208 0 navigationSystem
18941 0 #ffffff New vehicle
87 0 Nike
18943 0 #ffffff No
18938 0 #ffffff On request
22779 0 #ffffff Orange
18900 0 #ffffff Other
21607 0 #ffffff Other semi-trailers
21572 0 #ffffff Other vans/trucks up to 7.5 t
23326 0 OtherMotorhome
22835 0 #ffffff Part leather
23209 0 particulateFilterDiesel
22796 0 #ffffff Petrol
19288 0 #ffffff Power Assisted Steering
19198 0 #ffffff Pre-Registration
22868 0 #ffffff Rear
23329 0 rearGarage
22773 0 #ffffff Red
21557 0 #ffffff Refrigerator body
23341 0 RefrigeratorBodyTruck
18882 0 #ffffff RENAULT
23424 0 roadworthy
21675 0 #ffffff Saloon
121 0 SanDisk
21717 0 #ffffff SCANIA
22623 0 #ffffff SCHMITZ
22870 0 #ffffff Self-steering systems
23330 0 sepShower
23057 0 #ffffff short
22780 0 #ffffff Silver
22809 0 #ffffff Sliding door right
21677 0 #ffffff Small Car
23331 0 solarEnergySystem
20257 0 #ffffff Sportage
21563 0 #ffffff Stake body and tarpaulin
23368 0 StakeBodyAndTarpaulinTrailer
23321 0 StakeBodyAndTarpaulinTruck
21601 0 #ffffff Standard tractor/trailer unit
21676 0 #ffffff SUV/Off-road Vehicle/Pickup Truck
21564 0 #ffffff Swap chassis
23378 0 SwapChassisTrailer
23375 0 SwapChassisTruck
23367 0 TimberCarrierTruck
23349 0 TipperTruck
23301 0 tirePressureMonitoring
22763 0 #ffffff Trailer coupling fix
19253 0 #ffffff TV
18940 0 #ffffff Used vehicle
21615 0 #ffffff Van
21722 0 #ffffff VANHOOL
21602 0 #ffffff Volume trailer
21725 0 #ffffff VOLVO
23270 0 warranty
19254 0 #ffffff WC
21670 0 #ffffff Wheeled loader
22778 0 #ffffff White
23333 0 wifiHotspot
22781 0 #ffffff Yellow
18942 0 #ffffff Yes