SELECT 
  a.variant_id, 
  a.option_id, 
  a.position, 
  a.modifier, 
  a.modifier_type, 
  a.weight_modifier, 
  a.weight_modifier_type, 
  a.nav_skus, 
  a.commercial_modifier, 
  a.commercial_dn, 
  a.same_as_option, 
  a.price_overrides, 
  a.base_cost, 
  b.variant_name, 
  IF(
    shared_option_variants.variant_id IS NOT NULL, 
    shared_option_variants.modifier, 
    a.modifier
  ) as modifier, 
  IF(
    shared_option_variants.variant_id IS NOT NULL, 
    shared_option_variants.modifier_type, 
    a.modifier_type
  ) as modifier_type 
FROM 
  cscart_product_option_variants as a 
  LEFT JOIN cscart_product_option_variants_descriptions as b ON a.variant_id = b.variant_id 
  AND b.lang_code = 'en' 
  LEFT JOIN cscart_ult_product_option_variants shared_option_variants ON shared_option_variants.variant_id = a.variant_id 
  AND shared_option_variants.company_id = 1 
WHERE 
  a.option_id IN (
    23039, 21970, 23133, 23054, 22971, 23015, 
    24042, 23018, 23019, 23020, 23538, 
    21941
  ) 
  AND a.status = 'A' 
ORDER BY 
  a.position, 
  a.variant_id

Query time 0.00216

JSON explain

{
  "query_block": {
    "select_id": 1,
    "table": {
      "table_name": "shared_option_variants",
      "access_type": "system",
      "possible_keys": ["PRIMARY", "company_id"],
      "rows": 0,
      "filtered": 0,
      "const_row_not_found": true
    },
    "read_sorted_file": {
      "filesort": {
        "sort_key": "a.position, a.variant_id",
        "table": {
          "table_name": "a",
          "access_type": "range",
          "possible_keys": ["option_id", "option_id_2", "status"],
          "key": "option_id",
          "key_length": "6",
          "used_key_parts": ["option_id", "status"],
          "rows": 175,
          "filtered": 100,
          "index_condition": "a.option_id in (23039,21970,23133,23054,22971,23015,24042,23018,23019,23020,23538,21941) and a.`status` = 'A'"
        }
      }
    },
    "table": {
      "table_name": "b",
      "access_type": "eq_ref",
      "possible_keys": ["PRIMARY"],
      "key": "PRIMARY",
      "key_length": "9",
      "used_key_parts": ["variant_id", "lang_code"],
      "ref": ["cscart_migrate.a.variant_id", "const"],
      "rows": 1,
      "filtered": 100,
      "attached_condition": "trigcond(b.lang_code = 'en')"
    }
  }
}

Result

variant_id option_id position modifier modifier_type weight_modifier weight_modifier_type nav_skus commercial_modifier commercial_dn same_as_option price_overrides base_cost variant_name
218476 21970 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
220318 21941 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
229116 22971 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
229899 23015 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
229950 23018 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
229961 23019 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
229972 23020 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
230173 23039 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
230380 23054 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
230986 23133 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
236833 23538 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
246045 24042 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
215376 21941 3 0.000 A 0.000 A E26 0.00 0.00 0 0.00 E26
215713 21970 3 0.000 A 0.000 A 100 0.00 0.00 0 0.00 100-Black
229896 23015 3 0.000 A 0.000 A WGG 0.00 0.00 0 0.00 Wire Guard
229942 23018 3 0.000 A 0.000 A CLR 0.00 0.00 0 0.00 Clear Glass
229953 23019 3 0.000 A 0.000 A CLR 0.00 0.00 0 0.00 Clear Glass
229964 23020 3 0.000 A 0.000 A CLR 0.00 0.00 0 0.00 Clear Glass
230957 23133 3 11.000 A 0.000 A G26 0.00 0.00 0 0.00 G26 Gooseneck Arm
236829 23538 3 0.000 A 0.000 A NA 0.00 0.00 0 0.00 None
246019 24042 3 0.000 A 0.000 A 100 0.00 0.00 0 0.00 100-Black
215377 21941 5 14.000 A 0.000 A GU24 0.00 0.00 0 3.50 GU24
215714 21970 5 0.000 A 0.000 A 105 0.00 0.00 0 0.00 105-Textured Black
229117 22971 5 0.000 A 0.000 A NA 0.00 0.00 0 0.00 No Shade
229897 23015 5 5.000 A 0.000 A CGG 0.00 0.00 0 1.29 Cast Guard
229943 23018 5 10.000 A 0.000 A FST 0.00 0.00 0 1.88 Frosted Glass
229954 23019 5 10.000 A 0.000 A FST 0.00 0.00 0 6.50 Frosted Glass
229965 23020 5 7.000 A 0.000 A FST 0.00 0.00 0 6.50 Frosted Glass
230175 23039 5 0.000 A 0.000 A 0.00 0.00 0 0.00 Standard Bulb E26/GU24
230351 23054 5 0.000 A 0.000 A 100 0.00 0.00 0 0.00 100-Black
230958 23133 5 12.000 A 0.000 A G11 0.00 0.00 0 0.00 G11 Gooseneck Arm
236830 23538 5 43.000 A 0.000 A DBPC 0.00 0.00 0 0.00 Decorative BP Cover
246020 24042 5 0.000 A 0.000 A 105 0.00 0.00 0 0.00 105-Textured Black
230379 23054 8 0.000 A 0.000 A 105 0.00 0.00 0 0.00 105-Textured Black
215715 21970 10 0.000 A 0.000 A 200 0.00 0.00 0 0.00 200-White
229118 22971 10 11.000 A 0.000 A FS 0.00 0.00 0 0.00 Flared Shade
229944 23018 10 10.000 A 0.000 A RIB 0.00 0.00 0 3.15 Ribbed Glass
229955 23019 10 10.000 A 0.000 A RIB 0.00 0.00 0 6.50 Ribbed Glass
229966 23020 10 7.000 A 0.000 A RIB 0.00 0.00 0 6.50 Ribbed Glass
230174 23039 10 0.000 A 0.000 A 0.00 0.00 0 0.00 Nautical LED
230352 23054 10 0.000 A 0.000 A 200 0.00 0.00 0 0.00 200-White
230959 23133 10 15.000 A 0.000 A G15 0.00 0.00 0 0.00 G15 Gooseneck Arm
236831 23538 10 92.000 A 0.000 A DD 0.00 0.00 0 0.00 Dusk-to-Dawn Photocell
246021 24042 10 0.000 A 0.000 A 200 0.00 0.00 0 0.00 200-White
215716 21970 15 0.000 A 0.000 A 300 0.00 0.00 0 0.00 300-Dark Green
229119 22971 15 17.000 A 0.000 A WH 0.00 0.00 0 0.00 Warehouse Shade
229898 23015 15 5.000 A 0.000 A TGG 0.00 0.00 0 1.29 Heavy Duty Guard
230353 23054 15 0.000 A 0.000 A 300 0.00 0.00 0 0.00 300-Dark Green
230960 23133 15 17.000 A 0.000 A G22 0.00 0.00 0 0.00 G22 Gooseneck Arm
236832 23538 15 83.000 A 0.000 A HDBP 0.00 0.00 0 0.00 Heavy Duty BP
246022 24042 15 0.000 A 0.000 A 300 0.00 0.00 0 0.00 300-Dark Green
215738 21970 18 0.000 A 0.000 A 975 0.00 0.00 0 0.00 975-Galvanized
230980 23133 18 14.000 A 0.000 A G8 0.00 0.00 0 0.00 G8 Gooseneck Arm
246044 24042 18 0.000 A 0.000 A 975 0.00 0.00 0 0.00 975-Galvanized
215731 21970 19 0.000 A 0.000 A 605 0.00 0.00 0 0.00 605-Textured Rust
246037 24042 19 0.000 A 0.000 A 605 0.00 0.00 0 0.00 605-Textured Rust
230354 23054 20 0.000 A 0.000 A 975 0.00 0.00 0 0.00 975-Galvanized
230961 23133 20 26.000 A 0.000 A G24 0.00 0.00 0 0.00 G24 Gooseneck Arm
237036 21970 21 18.000 A 0.000 A 106 0.00 0.00 0 0.00 106-Matte Black
246046 24042 21 0.000 A 0.000 A 106 0.00 0.00 0 0.00 106-Matte Black
237037 21970 22 18.000 A 0.000 A 206 0.00 0.00 0 0.00 206-Matte White
246047 24042 22 0.000 A 0.000 A 206 0.00 0.00 0 0.00 206-Matte White
215717 21970 24 18.000 A 0.000 A 307 0.00 0.00 0 0.00 307-Emerald Green
246023 24042 24 0.000 A 0.000 A 307 0.00 0.00 0 0.00 307-Emerald Green
230355 23054 25 0.000 A 0.000 A 980 0.00 0.00 0 0.00 980-Brushed Aluminum
230962 23133 25 26.000 A 0.000 A G6 0.00 0.00 0 0.00 G6 Gooseneck Arm
242135 21970 25 18.000 A 0.000 A 311 0.00 0.00 0 0.00 311-Jadite
246053 24042 25 0.000 A 0.000 A 311 0.00 0.00 0 0.00 311-Jadite
241141 21970 26 18.000 A 0.000 A 320 0.00 0.00 0 0.00 320-Fern Green
246048 24042 26 0.000 A 0.000 A 320 0.00 0.00 0 0.00 320-Fern Green
215718 21970 28 18.000 A 0.000 A 370 0.00 0.00 0 0.00 370-Mint
246024 24042 28 0.000 A 0.000 A 370 0.00 0.00 0 0.00 370-Mint
215719 21970 30 18.000 A 0.000 A 380 0.00 0.00 0 0.00 380-Chartreuse
230356 23054 30 0.000 A 0.000 A 605 0.00 0.00 0 0.00 605-Textured Rust
230963 23133 30 0.000 A 0.000 A G3 0.00 0.00 0 0.00 G3 Straight Arm
246025 24042 30 0.000 A 0.000 A 380 0.00 0.00 0 0.00 380-Chartreuse
237066 23054 32 11.000 A 0.000 A 106 0.00 0.00 0 0.00 106-Matte Black
237067 23054 33 11.000 A 0.000 A 206 0.00 0.00 0 0.00 206-Matte White
215720 21970 35 18.000 A 0.000 A 390 0.00 0.00 0 0.00 390-Teal
230357 23054 35 11.000 A 0.000 A 307 0.00 0.00 0 0.00 307-Emerald Green
230964 23133 35 0.000 A 0.000 A G4 0.00 0.00 0 0.00 G4 Straight Arm
246026 24042 35 0.000 A 0.000 A 390 0.00 0.00 0 0.00 390-Teal
241720 23054 38 11.000 A 0.000 A 320 0.00 0.00 0 0.00 320-Fern Green
215721 21970 40 18.000 A 0.000 A 400 0.00 0.00 0 0.00 400-Barn Red
230358 23054 40 11.000 A 0.000 A 370 0.00 0.00 0 0.00 370-Mint
230965 23133 40 4.000 A 0.000 A G1 0.00 0.00 0 0.00 G1 Straight Arm
246027 24042 40 0.000 A 0.000 A 400 0.00 0.00 0 0.00 400-Barn Red
215722 21970 45 18.000 A 0.000 A 420 0.00 0.00 0 0.00 420-Orange
230359 23054 45 11.000 A 0.000 A 380 0.00 0.00 0 0.00 380-Chartreuse
230966 23133 45 4.000 A 0.000 A G14 0.00 0.00 0 0.00 G14 Straight Arm
246028 24042 45 0.000 A 0.000 A 420 0.00 0.00 0 0.00 420-Orange
241142 21970 48 18.000 A 0.000 A 430 0.00 0.00 0 0.00 430-Soft Clay
246049 24042 48 0.000 A 0.000 A 430 0.00 0.00 0 0.00 430-Soft Clay
215723 21970 50 18.000 A 0.000 A 470 0.00 0.00 0 0.00 470-Watermelon
230360 23054 50 11.000 A 0.000 A 390 0.00 0.00 0 0.00 390-Teal
230967 23133 50 2.000 A 0.000 A G16 0.00 0.00 0 0.00 G16 Straight Arm
246029 24042 50 0.000 A 0.000 A 470 0.00 0.00 0 0.00 470-Watermelon
215724 21970 55 18.000 A 0.000 A 480 0.00 0.00 0 0.00 480-Blush Pink
230361 23054 55 11.000 A 0.000 A 400 0.00 0.00 0 0.00 400-Barn Red
230968 23133 55 2.000 A 0.000 A G17 0.00 0.00 0 0.00 G17 Straight Arm
246030 24042 55 0.000 A 0.000 A 480 0.00 0.00 0 0.00 480-Blush Pink
215725 21970 60 18.000 A 0.000 A 490 0.00 0.00 0 0.00 490-Magenta
230362 23054 60 11.000 A 0.000 A 420 0.00 0.00 0 0.00 420-Orange
230969 23133 60 26.000 A 0.000 A G35 0.00 0.00 0 0.00 G35 Gooseneck Arm
246031 24042 60 0.000 A 0.000 A 490 0.00 0.00 0 0.00 490-Magenta
241721 23054 63 11.000 A 0.000 A 430 0.00 0.00 0 0.00 430-Soft Clay
215726 21970 65 18.000 A 0.000 A 495 0.00 0.00 0 0.00 495-Sherbet Orange
230363 23054 65 11.000 A 0.000 A 470 0.00 0.00 0 0.00 470-Watermelon
230970 23133 65 30.000 A 0.000 A G34 0.00 0.00 0 0.00 G34 Gooseneck Arm
246032 24042 65 0.000 A 0.000 A 495 0.00 0.00 0 0.00 495-Sherbet Orange
215727 21970 70 18.000 A 0.000 A 500 0.00 0.00 0 0.00 500-Buttery Yellow
230364 23054 70 11.000 A 0.000 A 480 0.00 0.00 0 0.00 480-Blush Pink
230971 23133 70 16.000 A 0.000 A G5 0.00 0.00 0 0.00 G5 Gooseneck Arm
246033 24042 70 0.000 A 0.000 A 500 0.00 0.00 0 0.00 500-Buttery Yellow
215728 21970 75 18.000 A 0.000 A 570 0.00 0.00 0 0.00 570-Sunflower
230365 23054 75 11.000 A 0.000 A 490 0.00 0.00 0 0.00 490-Magenta
246034 24042 75 0.000 A 0.000 A 570 0.00 0.00 0 0.00 570-Sunflower
215729 21970 80 18.000 A 0.000 A 600 0.00 0.00 0 0.00 600-Bronze
230366 23054 80 11.000 A 0.000 A 495 0.00 0.00 0 0.00 495-Sherbet Orange
230972 23133 80 21.000 A 0.000 A G25 0.00 0.00 0 0.00 G25 Gooseneck Arm
246035 24042 80 0.000 A 0.000 A 600 0.00 0.00 0 0.00 600-Bronze
215730 21970 85 18.000 A 0.000 A 601 0.00 0.00 0 0.00 601-Chocolate
230367 23054 85 11.000 A 0.000 A 500 0.00 0.00 0 0.00 500-Buttery Yellow
230973 23133 85 28.000 A 0.000 A G10 0.00 0.00 0 0.00 G10 Gooseneck Arm
246036 24042 85 0.000 A 0.000 A 601 0.00 0.00 0 0.00 601-Chocolate
246050 24042 88 0.000 A 0.000 A 607 0.00 0.00 0 0.00 607-Taupe
230368 23054 90 11.000 A 0.000 A 570 0.00 0.00 0 0.00 570-Sunflower
230974 23133 90 97.000 A 0.000 A G19 0.00 0.00 0 0.00 G19 Gooseneck Arm
241143 21970 90 18.000 A 0.000 A 607 0.00 0.00 0 0.00 607-Taupe
215732 21970 95 18.000 A 0.000 A 615 0.00 0.00 0 0.00 615-Oil-Rubbed Bronze
230369 23054 95 11.000 A 0.000 A 600 0.00 0.00 0 0.00 600-Bronze
230975 23133 95 190.000 A 0.000 A G65 0.00 0.00 0 0.00 G65 Gooseneck Arm
246038 24042 95 0.000 A 0.000 A 615 0.00 0.00 0 0.00 615-Oil-Rubbed Bronze
241144 21970 98 18.000 A 0.000 A 630 0.00 0.00 0 0.00 630-Beige
246051 24042 98 0.000 A 0.000 A 630 0.00 0.00 0 0.00 630-Beige
215733 21970 100 18.000 A 0.000 A 700 0.00 0.00 0 0.00 700-Royal Blue
230370 23054 100 11.000 A 0.000 A 601 0.00 0.00 0 0.00 601-Chocolate
230976 23133 100 158.000 A 0.000 A G64 0.00 0.00 0 0.00 G64 Gooseneck Arm
246039 24042 100 0.000 A 0.000 A 700 0.00 0.00 0 0.00 700-Royal Blue
241722 23054 103 11.000 A 0.000 A 607 0.00 0.00 0 0.00 607-Taupe
215734 21970 105 18.000 A 0.000 A 705 0.00 0.00 0 0.00 705-Navy
230371 23054 105 11.000 A 0.000 A 615 0.00 0.00 0 0.00 615-Oil-Rubbed Bronze
230977 23133 105 8.000 A 0.000 A G12 0.00 0.00 0 0.00 G12 Gooseneck Arm
246040 24042 105 0.000 A 0.000 A 705 0.00 0.00 0 0.00 705-Navy
246054 24042 107 0.000 A 0.000 A 710 0.00 0.00 0 0.00 710-Cobalt Blue
241723 23054 108 11.000 A 0.000 A 630 0.00 0.00 0 0.00 630-Beige
246055 24042 109 0.000 A 0.000 A 715 0.00 0.00 0 0.00 715-Delphite Blue
215735 21970 110 18.000 A 0.000 A 790 0.00 0.00 0 0.00 790-Lavender
230372 23054 110 11.000 A 0.000 A 700 0.00 0.00 0 0.00 700-Royal Blue
230978 23133 110 10.000 A 0.000 A G13 0.00 0.00 0 0.00 G13 Gooseneck Arm
246041 24042 110 0.000 A 0.000 A 790 0.00 0.00 0 0.00 790-Lavender
242136 21970 112 18.000 A 0.000 A 710 0.00 0.00 0 0.00 710-Cobalt Blue
242137 21970 113 18.000 A 0.000 A 715 0.00 0.00 0 0.00 715-Delphite Blue
215736 21970 115 18.000 A 0.000 A 800 0.00 0.00 0 0.00 800-Industrial Grey
230373 23054 115 11.000 A 0.000 A 705 0.00 0.00 0 0.00 705-Navy
230979 23133 115 23.000 A 0.000 A G32 0.00 0.00 0 0.00 G32 Gooseneck Arm
246042 24042 115 0.000 A 0.000 A 800 0.00 0.00 0 0.00 800-Industrial Grey
240475 23054 118 11.000 A 0.000 A 790 0.00 0.00 0 0.00 790-Lavender
215737 21970 120 18.000 A 0.000 A 805 0.00 0.00 0 0.00 805-Charcoal Granite
230374 23054 120 11.000 A 0.000 A 805 0.00 0.00 0 0.00 805-Charcoal Granite
246043 24042 120 0.000 A 0.000 A 805 0.00 0.00 0 0.00 805-Charcoal Granite
246056 24042 122 0.000 A 0.000 A 810 0.00 0.00 0 0.00 810-Graphite
241724 23054 123 11.000 A 0.000 A 815 0.00 0.00 0 0.00 815-Light Grey
242138 21970 123 18.000 A 0.000 A 810 0.00 0.00 0 0.00 810-Graphite
246052 24042 123 0.000 A 0.000 A 815 0.00 0.00 0 0.00 815-Light Grey
230981 23133 125 35.000 A 0.000 A G2 0.00 0.00 0 0.00 G2 Gooseneck Arm
241145 21970 125 18.000 A 0.000 A 815 0.00 0.00 0 0.00 815-Light Grey
242868 23054 125 11.000 A 0.000 A 311 0.00 0.00 0 0.00 311-Jadite
242869 23054 127 11.000 A 0.000 A 710 0.00 0.00 0 0.00 710-Cobalt Blue
242870 23054 129 11.000 A 0.000 A 715 0.00 0.00 0 0.00 715-Delphite Blue
230982 23133 130 39.000 A 0.000 A G36 0.00 0.00 0 0.00 G36 Gooseneck Arm
242871 23054 131 11.000 A 0.000 A 810 0.00 0.00 0 0.00 810-Graphite
230983 23133 135 25.000 A 0.000 A G7 0.00 0.00 0 0.00 G7 Gooseneck Arm
230984 23133 140 32.000 A 0.000 A G9 0.00 0.00 0 0.00 G9 Gooseneck Arm
230985 23133 145 141.000 A 0.000 A G40 0.00 0.00 0 0.00 G40 Gooseneck Arm