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 (
    22125, 22126, 23426, 23427, 23428, 23519, 
    23430, 23431, 23432, 23433, 23434, 
    21941
  ) 
  AND a.status = 'A' 
ORDER BY 
  a.position, 
  a.variant_id

Query time 0.00272

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": 176,
          "filtered": 100,
          "index_condition": "a.option_id in (22125,22126,23426,23427,23428,23519,23430,23431,23432,23433,23434,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
218033 22125 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
220119 22126 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
235107 23426 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
235123 23427 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
235151 23428 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
235168 23430 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
235179 23431 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
235190 23432 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
235219 23433 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
235232 23434 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
236451 23519 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
244478 23434 0 0.000 A 0.000 A M103 0.00 0.00 0 0.00 M103-Black
244462 23426 2 79.000 A 0.000 A M103 50.00 0.00 0 0.00 M103-Black
215376 21941 3 0.000 A 0.000 A E26 0.00 0.00 0 0.00 E26
218037 22126 3 0.000 A 0.000 A RWS12 0.00 0.00 0 0.00 12" Shade
235109 23427 3 0.000 A 0.000 A 0.00 0.00 23426 0.00 Same as Shade
235124 23428 3 0.000 A 0.000 A 0.00 0.00 23426 0.00 Same as Shade
235160 23430 3 0.000 A 0.000 A CLR 0.00 0.00 0 0.00 Clear Glass
235171 23431 3 0.000 A 0.000 A CLR 0.00 0.00 0 0.00 Clear Glass
235182 23432 3 0.000 A 0.000 A CLR 0.00 0.00 0 0.00 Clear Glass
235193 23433 3 0.000 A 0.000 A 100 0.00 0.00 0 0.00 100-Black
236445 23519 3 0.000 A 0.000 A NA 0.00 0.00 0 0.00 None
244463 23426 4 79.000 A 0.000 A M200 50.00 0.00 0 0.00 M200-White
215377 21941 5 14.000 A 0.000 A GU24 0.00 0.00 0 3.50 GU24
218034 22125 5 0.000 A 0.000 A 0.00 0.00 0 0.00 Standard Bulb E26/GU24
218038 22126 5 13.000 A 0.000 A RWS14 0.00 0.00 0 0.00 14" Shade
235125 23428 5 0.000 A 0.000 A 100 0.00 0.00 0 0.00 100-Black
235161 23430 5 10.000 A 0.000 A FST 0.00 0.00 0 0.00 Frosted Glass
235172 23431 5 10.000 A 0.000 A FST 0.00 0.00 0 0.00 Frosted Glass
235183 23432 5 10.000 A 0.000 A FST 0.00 0.00 0 0.00 Frosted Glass
235194 23433 5 0.000 A 0.000 A 105 0.00 0.00 0 0.00 105-Textured Black
244470 23427 5 0.000 A 0.000 A M103 0.00 0.00 0 0.00 M103-Black
244479 23434 5 0.000 A 0.000 A M200 0.00 0.00 0 0.00 M200-White
244464 23426 6 79.000 A 0.000 A M305 50.00 0.00 0 0.00 M305-Forest Green
244465 23426 8 79.000 A 0.000 A M603 50.00 0.00 0 0.00 M603-Brown
218035 22125 10 0.000 A 0.000 A 0.00 0.00 0 0.00 Integrated LED
218039 22126 10 24.000 A 0.000 A RWS16 0.00 0.00 0 0.00 16" Shade
235126 23428 10 0.000 A 0.000 A 105 0.00 0.00 0 0.00 105-Textured Black
235162 23430 10 10.000 A 0.000 A RIB 0.00 0.00 0 0.00 Ribbed Glass
235173 23431 10 10.000 A 0.000 A RIB 0.00 0.00 0 0.00 Ribbed Glass
235184 23432 10 10.000 A 0.000 A RIB 0.00 0.00 0 0.00 Ribbed Glass
235195 23433 10 0.000 A 0.000 A 200 0.00 0.00 0 0.00 200-White
244466 23426 10 79.000 A 0.000 A M415 50.00 0.00 0 0.00 M415-Red
244471 23427 10 0.000 A 0.000 A M200 0.00 0.00 0 0.00 M200-White
244480 23434 10 0.000 A 0.000 A M305 0.00 0.00 0 0.00 M305-Forest Green
244467 23426 12 79.000 A 0.000 A M315 50.00 0.00 0 0.00 M315-Seafoam
244468 23426 14 79.000 A 0.000 A M803 50.00 0.00 0 0.00 M803-Dark Grey
218036 22125 15 0.000 A 0.000 A 0.00 0.00 0 0.00 Nautical LED
235127 23428 15 0.000 A 0.000 A 200 0.00 0.00 0 0.00 200-White
235196 23433 15 0.000 A 0.000 A 300 0.00 0.00 0 0.00 300-Dark Green
236448 23519 15 97.000 A 0.000 A WGG 0.00 0.00 0 0.00 Wire Guard & Glass
244472 23427 15 0.000 A 0.000 A M305 0.00 0.00 0 0.00 M305-Forest Green
244481 23434 15 0.000 A 0.000 A M603 0.00 0.00 0 0.00 M603-Brown
244469 23426 16 79.000 A 0.000 A M210 50.00 0.00 0 0.00 M210-Cream
235128 23428 20 0.000 A 0.000 A 300 0.00 0.00 0 0.00 300-Dark Green
235197 23433 20 0.000 A 0.000 A 975 0.00 0.00 0 0.00 975-Galvanized
236449 23519 20 97.000 A 0.000 A CGG 0.00 0.00 0 0.00 Cast Guard & Glass
244473 23427 20 0.000 A 0.000 A M603 0.00 0.00 0 0.00 M603-Brown
244482 23434 20 0.000 A 0.000 A M415 0.00 0.00 0 0.00 M415-Red
235129 23428 25 0.000 A 0.000 A 975 0.00 0.00 0 0.00 975-Galvanized
235198 23433 25 0.000 A 0.000 A 605 0.00 0.00 0 0.00 605-Textured Rust
236450 23519 25 97.000 A 0.000 A TGG 0.00 0.00 0 0.00 Heavy Guard & Glass
244474 23427 25 0.000 A 0.000 A M415 0.00 0.00 0 0.00 M415-Red
244483 23434 25 0.000 A 0.000 A M315 0.00 0.00 0 0.00 M315-Seafoam
241041 23433 27 11.000 A 0.000 A 106 0.00 0.00 0 0.00 106-Matte Black
235150 23428 28 0.000 A 0.000 A 980 0.00 0.00 0 0.00 980-Brushed Aluminum
241042 23433 28 11.000 A 0.000 A 206 0.00 0.00 0 0.00 206-Matte White
235130 23428 30 0.000 A 0.000 A 605 0.00 0.00 0 0.00 605-Textured Rust
235199 23433 30 11.000 A 0.000 A 307 0.00 0.00 0 0.00 307-Emerald Green
244475 23427 30 0.000 A 0.000 A M315 0.00 0.00 0 0.00 M315-Seafoam
244484 23434 30 0.000 A 0.000 A M803 0.00 0.00 0 0.00 M803-Dark Grey
237319 23428 32 11.000 A 0.000 A 106 0.00 0.00 0 0.00 106-Matte Black
245078 23433 32 11.000 A 0.000 A 311 0.00 0.00 0 0.00 311-Jadite
237320 23428 33 11.000 A 0.000 A 206 0.00 0.00 0 0.00 206-Matte White
240995 23433 33 11.000 A 0.000 A 320 0.00 0.00 0 0.00 320-Fern Green
235131 23428 35 11.000 A 0.000 A 307 0.00 0.00 0 0.00 307-Emerald Green
235200 23433 35 11.000 A 0.000 A 370 0.00 0.00 0 0.00 370-Mint
244476 23427 35 0.000 A 0.000 A M803 0.00 0.00 0 0.00 M803-Dark Grey
244485 23434 35 0.000 A 0.000 A M210 0.00 0.00 0 0.00 M210-Cream
245074 23428 36 11.000 A 0.000 A 311 0.00 0.00 0 0.00 311-Jadite
241095 23428 38 11.000 A 0.000 A 320 0.00 0.00 0 0.00 320-Fern Green
235132 23428 40 11.000 A 0.000 A 370 0.00 0.00 0 0.00 370-Mint
235201 23433 40 11.000 A 0.000 A 380 0.00 0.00 0 0.00 380-Chartreuse
244477 23427 40 0.000 A 0.000 A M210 0.00 0.00 0 0.00 M210-Cream
235133 23428 45 11.000 A 0.000 A 380 0.00 0.00 0 0.00 380-Chartreuse
235202 23433 45 11.000 A 0.000 A 390 0.00 0.00 0 0.00 390-Teal
235134 23428 50 11.000 A 0.000 A 390 0.00 0.00 0 0.00 390-Teal
235203 23433 50 11.000 A 0.000 A 400 0.00 0.00 0 0.00 400-Barn Red
235077 23426 55 0.000 A 0.000 A 100 0.00 0.00 0 0.00 100-Black
235135 23428 55 11.000 A 0.000 A 400 0.00 0.00 0 0.00 400-Barn Red
235204 23433 55 11.000 A 0.000 A 420 0.00 0.00 0 0.00 420-Orange
240996 23433 58 11.000 A 0.000 A 430 0.00 0.00 0 0.00 430-Soft Clay
235078 23426 60 0.000 A 0.000 A 105 0.00 0.00 0 0.00 105-Textured Black
235136 23428 60 11.000 A 0.000 A 420 0.00 0.00 0 0.00 420-Orange
235205 23433 60 11.000 A 0.000 A 470 0.00 0.00 0 0.00 470-Watermelon
241096 23428 63 11.000 A 0.000 A 430 0.00 0.00 0 0.00 430-Soft Clay
235079 23426 65 0.000 A 0.000 A 200 0.00 0.00 0 0.00 200-White
235137 23428 65 11.000 A 0.000 A 470 0.00 0.00 0 0.00 470-Watermelon
235206 23433 65 11.000 A 0.000 A 480 0.00 0.00 0 0.00 480-Blush Pink
235080 23426 70 0.000 A 0.000 A 300 0.00 0.00 0 0.00 300-Dark Green
235138 23428 70 11.000 A 0.000 A 480 0.00 0.00 0 0.00 480-Blush Pink
235207 23433 70 11.000 A 0.000 A 490 0.00 0.00 0 0.00 490-Magenta
235081 23426 75 0.000 A 0.000 A 975 0.00 0.00 0 0.00 975-Galvanized
235139 23428 75 11.000 A 0.000 A 490 0.00 0.00 0 0.00 490-Magenta
235208 23433 75 11.000 A 0.000 A 495 0.00 0.00 0 0.00 495-Sherbet Orange
235082 23426 80 0.000 A 0.000 A 605 0.00 0.00 0 0.00 605-Textured Rust
235140 23428 80 11.000 A 0.000 A 495 0.00 0.00 0 0.00 495-Sherbet Orange
235209 23433 80 11.000 A 0.000 A 500 0.00 0.00 0 0.00 500-Buttery Yellow
237317 23426 82 18.000 A 0.000 A 106 0.00 0.00 0 0.00 106-Matte Black
237318 23426 84 18.000 A 0.000 A 206 0.00 0.00 0 0.00 206-Matte White
235083 23426 85 18.000 A 0.000 A 307 0.00 0.00 0 0.00 307-Emerald Green
235141 23428 85 11.000 A 0.000 A 500 0.00 0.00 0 0.00 500-Buttery Yellow
235210 23433 85 11.000 A 0.000 A 570 0.00 0.00 0 0.00 570-Sunflower
245070 23426 86 18.000 A 0.000 A 311 0.00 0.00 0 0.00 311-Jadite
240990 23426 88 18.000 A 0.000 A 320 0.00 0.00 0 0.00 320-Fern Green
235084 23426 90 18.000 A 0.000 A 370 0.00 0.00 0 0.00 370-Mint
235142 23428 90 11.000 A 0.000 A 570 0.00 0.00 0 0.00 570-Sunflower
235211 23433 90 11.000 A 0.000 A 600 0.00 0.00 0 0.00 600-Bronze
235085 23426 95 18.000 A 0.000 A 380 0.00 0.00 0 0.00 380-Chartreuse
235143 23428 95 11.000 A 0.000 A 600 0.00 0.00 0 0.00 600-Bronze
235212 23433 95 11.000 A 0.000 A 601 0.00 0.00 0 0.00 601-Chocolate
240997 23433 98 11.000 A 0.000 A 607 0.00 0.00 0 0.00 607-Taupe
235086 23426 100 18.000 A 0.000 A 390 0.00 0.00 0 0.00 390-Teal
235144 23428 100 11.000 A 0.000 A 601 0.00 0.00 0 0.00 601-Chocolate
235213 23433 100 11.000 A 0.000 A 615 0.00 0.00 0 0.00 615-Oil-Rubbed Bronze
240998 23433 103 11.000 A 0.000 A 630 0.00 0.00 0 0.00 630-Beige
241097 23428 103 11.000 A 0.000 A 607 0.00 0.00 0 0.00 607-Taupe
235087 23426 105 18.000 A 0.000 A 400 0.00 0.00 0 0.00 400-Barn Red
235145 23428 105 11.000 A 0.000 A 615 0.00 0.00 0 0.00 615-Oil-Rubbed Bronze
235214 23433 105 11.000 A 0.000 A 700 0.00 0.00 0 0.00 700-Royal Blue
241098 23428 108 11.000 A 0.000 A 630 0.00 0.00 0 0.00 630-Beige
235088 23426 110 18.000 A 0.000 A 420 0.00 0.00 0 0.00 420-Orange
235146 23428 110 11.000 A 0.000 A 700 0.00 0.00 0 0.00 700-Royal Blue
235215 23433 110 11.000 A 0.000 A 705 0.00 0.00 0 0.00 705-Navy
245079 23433 112 11.000 A 0.000 A 710 0.00 0.00 0 0.00 710-Cobalt Blue
240991 23426 113 18.000 A 0.000 A 430 0.00 0.00 0 0.00 430-Soft Clay
245080 23433 113 11.000 A 0.000 A 715 0.00 0.00 0 0.00 715-Delphite Blue
235089 23426 115 18.000 A 0.000 A 470 0.00 0.00 0 0.00 470-Watermelon
235147 23428 115 11.000 A 0.000 A 705 0.00 0.00 0 0.00 705-Navy
235216 23433 115 11.000 A 0.000 A 790 0.00 0.00 0 0.00 790-Lavender
245075 23428 116 11.000 A 0.000 A 710 0.00 0.00 0 0.00 710-Cobalt Blue
245076 23428 117 11.000 A 0.000 A 715 0.00 0.00 0 0.00 715-Delphite Blue
235152 23428 118 11.000 A 0.000 A 790 0.00 0.00 0 0.00 790-Lavender
235090 23426 120 18.000 A 0.000 A 480 0.00 0.00 0 0.00 480-Blush Pink
235148 23428 120 11.000 A 0.000 A 800 0.00 0.00 0 0.00 800-Industrial Grey
235217 23433 120 11.000 A 0.000 A 800 0.00 0.00 0 0.00 800-Industrial Grey
235091 23426 125 18.000 A 0.000 A 490 0.00 0.00 0 0.00 490-Magenta
235218 23433 125 11.000 A 0.000 A 805 0.00 0.00 0 0.00 805-Charcoal Granite
245081 23433 127 11.000 A 0.000 A 810 0.00 0.00 0 0.00 810-Graphite
240999 23433 128 11.000 A 0.000 A 715 0.00 0.00 0 0.00 815-Light Grey
235092 23426 130 18.000 A 0.000 A 495 0.00 0.00 0 0.00 495-Sherbet Orange
235149 23428 130 11.000 A 0.000 A 805 0.00 0.00 0 0.00 805-Charcoal Granite
245077 23428 133 11.000 A 0.000 A 810 0.00 0.00 0 0.00 810-Graphite
235093 23426 135 18.000 A 0.000 A 500 0.00 0.00 0 0.00 500-Buttery Yellow
241099 23428 135 11.000 A 0.000 A 815 0.00 0.00 0 0.00 815-Light Grey
235094 23426 140 18.000 A 0.000 A 570 0.00 0.00 0 0.00 570-Sunflower
235095 23426 145 18.000 A 0.000 A 600 0.00 0.00 0 0.00 600-Bronze
235096 23426 150 18.000 A 0.000 A 601 0.00 0.00 0 0.00 601-Chocolate
240992 23426 153 18.000 A 0.000 A 607 0.00 0.00 0 0.00 607-Taupe
235097 23426 155 18.000 A 0.000 A 615 0.00 0.00 0 0.00 615-Oil-Rubbed Bronze
240993 23426 158 18.000 A 0.000 A 630 0.00 0.00 0 0.00 630-Beige
235098 23426 160 18.000 A 0.000 A 700 0.00 0.00 0 0.00 700-Royal Blue
235099 23426 165 18.000 A 0.000 A 705 0.00 0.00 0 0.00 705-Navy
245071 23426 166 18.000 A 0.000 A 710 0.00 0.00 0 0.00 710-Cobalt Blue
245072 23426 167 18.000 A 0.000 A 715 0.00 0.00 0 0.00 715-Delphite Blue
235108 23426 168 18.000 A 0.000 A 790 0.00 0.00 0 0.00 790-Lavender
235100 23426 170 18.000 A 0.000 A 800 0.00 0.00 0 0.00 800-Industrial Grey
235101 23426 175 18.000 A 0.000 A 805 0.00 0.00 0 0.00 805-Charcoal Granite
245073 23426 176 18.000 A 0.000 A 810 0.00 0.00 0 0.00 810-Graphite
240994 23426 178 18.000 A 0.000 A 815 0.00 0.00 0 0.00 815-Light Grey
235102 23426 180 160.000 A 0.000 A 995 0.00 0.00 0 0.00 995-Raw Copper
235103 23426 185 200.000 A 0.000 A 996 0.00 0.00 0 0.00 996-Weathered Copper
235104 23426 190 250.000 A 0.000 A 999 0.00 0.00 0 0.00 999-Oil-Rubbed Copper
235105 23426 195 210.000 A 0.000 A 997 0.00 0.00 0 0.00 997-Raw Brass
235106 23426 200 250.000 A 0.000 A 998 0.00 0.00 0 0.00 998-Weathered Brass