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 (
    22986, 22952, 21951, 23557, 21943, 22067, 
    22040, 23587, 21941
  ) 
  AND a.status = 'A' 
ORDER BY 
  a.position, 
  a.variant_id

Query time 0.00221

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": 187,
          "filtered": 100,
          "index_condition": "a.option_id in (22986,22952,21951,23557,21943,22067,22040,23587,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
220144 21951 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
220170 21943 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
220231 22067 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
220272 22040 0 0.000 A 0.000 A skip 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
228624 22952 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
229352 22986 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
237634 23557 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
238137 23587 0 0.000 A 0.000 A skip 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
215381 21943 3 0.000 A 0.000 A SBK 0.00 0.00 0 0.00 Standard Black
215513 21951 3 0.000 A 0.000 A CN36 0.00 0.00 0 0.00 3 Feet of Chain
217308 22040 3 0.000 A 0.000 A 100 0.00 0.00 0 0.00 100-Black
217630 22067 3 0.000 A 0.000 A NA 0.00 0.00 0 0.00 None
228594 22952 3 0.000 A 0.000 A 100 0.00 0.00 0 0.00 100-Black
229346 22986 3 0.000 A 0.000 A ULW12 0.00 0.00 0 0.00 12" Shade
237603 23557 3 0.000 A 0.000 A 0.00 0.00 22952 0.00 Same as Shade
238107 23587 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
215382 21943 5 5.000 A 0.000 A SWH 0.00 0.00 0 0.32 Standard White
217309 22040 5 0.000 A 0.000 A 105 0.00 0.00 0 0.00 105-Textured Black
217631 22067 5 87.000 A 0.000 A ACR 0.00 0.00 0 {"229346":"75.00","229347":"85.00","229348":"95.00","229349":"140.00","236650":"165.00"} 0.00 Acrylic Diffuser
228595 22952 5 0.000 A 0.000 A 105 0.00 0.00 0 0.00 105-Textured Black
229347 22986 5 13.000 A 0.000 A ULW14 0.00 0.00 0 0.00 14" Shade
237604 23557 5 0.000 A 0.000 A 100 0.00 0.00 0 0.00 100-Black
238108 23587 5 0.000 A 0.000 A 105 0.00 0.00 0 0.00 105-Textured Black
215383 21943 10 10.000 A 0.000 A CSB 0.00 0.00 0 3.66 Black Cloth
217310 22040 10 0.000 A 0.000 A 200 0.00 0.00 0 0.00 200-White
217632 22067 10 49.000 A 0.000 A WC 0.00 0.00 0 0.00 Wire Cage
228596 22952 10 0.000 A 0.000 A 200 0.00 0.00 0 0.00 200-White
229348 22986 10 24.000 A 0.000 A ULW16 0.00 0.00 0 0.00 16" Shade
237605 23557 10 0.000 A 0.000 A 105 0.00 0.00 0 0.00 105-Textured Black
238109 23587 10 0.000 A 0.000 A 200 0.00 0.00 0 0.00 200-White
215384 21943 15 10.000 A 0.000 A SLVR 0.00 0.00 0 3.66 Silver Cloth
215516 21951 15 25.000 A 0.000 A CN72 0.00 0.00 0 0.00 6 Feet of Chain
217311 22040 15 0.000 A 0.000 A 300 0.00 0.00 0 0.00 300-Dark Green
228597 22952 15 0.000 A 0.000 A 300 0.00 0.00 0 0.00 300-Dark Green
229349 22986 15 36.000 A 0.000 A ULW18 0.00 0.00 0 0.00 18" Shade
237606 23557 15 0.000 A 0.000 A 200 0.00 0.00 0 0.00 200-White
238110 23587 15 0.000 A 0.000 A 300 0.00 0.00 0 0.00 300-Dark Green
228619 22952 18 0.000 A 0.000 A 975 0.00 0.00 0 0.00 975-Galvanized
228612 22952 19 0.000 A 0.000 A 605 0.00 0.00 0 0.00 605-Textured Rust
215385 21943 20 10.000 A 0.000 A CRM 0.00 0.00 0 3.66 Creme Cloth
217312 22040 20 0.000 A 0.000 A 975 0.00 0.00 0 0.00 975-Galvanized
236650 22986 20 47.000 A 0.000 A ULW20 0.00 0.00 0 0.00 20" Shade
237607 23557 20 0.000 A 0.000 A 300 0.00 0.00 0 0.00 300-Dark Green
238111 23587 20 0.000 A 0.000 A 975 0.00 0.00 0 0.00 975-Galvanized
237074 22952 21 18.000 A 0.000 A 106 0.00 0.00 0 0.00 106-Matte Black
215394 21943 22 10.000 A 0.000 A BPNK 0.00 0.00 0 3.66 Blush Pink Cloth
237075 22952 22 18.000 A 0.000 A 206 0.00 0.00 0 0.00 206-Matte White
215403 21943 23 30.000 A 0.000 A CNF 0.00 0.00 0 10.06 Confetti Cloth
228598 22952 24 18.000 A 0.000 A 307 0.00 0.00 0 0.00 307-Emerald Green
215386 21943 25 10.000 A 0.000 A RST 0.00 0.00 0 3.66 Rust Cloth
217313 22040 25 0.000 A 0.000 A 605 0.00 0.00 0 0.00 605-Textured Rust
237608 23557 25 0.000 A 0.000 A 975 0.00 0.00 0 0.00 975-Galvanized
238112 23587 25 0.000 A 0.000 A 605 0.00 0.00 0 0.00 605-Textured Rust
242509 22952 25 18.000 A 0.000 A 311 0.00 0.00 0 0.00 311-Jadite
241555 22952 26 18.000 A 0.000 A 320 0.00 0.00 0 0.00 320-Fern Green
237062 22040 27 11.000 A 0.000 A 106 0.00 0.00 0 0.00 106-Matte Black
238138 23587 27 11.000 A 0.000 A 106 0.00 0.00 0 0.00 106-Matte Black
228599 22952 28 18.000 A 0.000 A 370 0.00 0.00 0 0.00 370-Mint
237063 22040 28 11.000 A 0.000 A 206 0.00 0.00 0 0.00 206-Matte White
238139 23587 28 11.000 A 0.000 A 206 0.00 0.00 0 0.00 206-Matte White
215387 21943 30 15.000 A 0.000 A RBS 0.00 0.00 0 6.81 Barn Red & Black Swirl Cloth
217314 22040 30 11.000 A 0.000 A 307 0.00 0.00 0 0.00 307-Emerald Green
228600 22952 30 18.000 A 0.000 A 380 0.00 0.00 0 0.00 380-Chartreuse
238113 23587 30 11.000 A 0.000 A 307 0.00 0.00 0 0.00 307-Emerald Green
242263 22040 32 11.000 A 0.000 A 311 0.00 0.00 0 0.00 311-Jadite
242267 23587 32 11.000 A 0.000 A 311 0.00 0.00 0 0.00 311-Jadite
241171 22040 33 11.000 A 0.000 A 320 0.00 0.00 0 0.00 320-Fern Green
241181 23587 33 11.000 A 0.000 A 320 0.00 0.00 0 0.00 320-Fern Green
215388 21943 35 10.000 A 0.000 A ORG 0.00 0.00 0 3.66 Orange Cloth Cord
217315 22040 35 11.000 A 0.000 A 370 0.00 0.00 0 0.00 370-Mint
228601 22952 35 18.000 A 0.000 A 390 0.00 0.00 0 0.00 390-Teal
237610 23557 35 0.000 A 0.000 A 605 0.00 0.00 0 0.00 605-Textured Rust
238114 23587 35 11.000 A 0.000 A 370 0.00 0.00 0 0.00 370-Mint
237635 23557 37 11.000 A 0.000 A 106 0.00 0.00 0 0.00 106-Matte Black
237636 23557 38 11.000 A 0.000 A 206 0.00 0.00 0 0.00 206-Matte White
215389 21943 40 10.000 A 0.000 A YLW 0.00 0.00 0 3.66 Buttery Cloth Cord
217316 22040 40 11.000 A 0.000 A 380 0.00 0.00 0 0.00 380-Chartreuse
228602 22952 40 18.000 A 0.000 A 400 0.00 0.00 0 0.00 400-Barn Red
237611 23557 40 11.000 A 0.000 A 307 0.00 0.00 0 0.00 307-Emerald Green
238115 23587 40 11.000 A 0.000 A 380 0.00 0.00 0 0.00 380-Chartreuse
237630 23557 42 11.000 A 0.000 A 311 0.00 0.00 0 0.00 311-Jadite
242793 23557 43 11.000 A 0.000 A 320 0.00 0.00 0 0.00 320-Fern Green
215390 21943 45 10.000 A 0.000 A NGRN 0.00 0.00 0 3.66 Neon Green Cloth
217317 22040 45 11.000 A 0.000 A 390 0.00 0.00 0 0.00 390-Teal
228603 22952 45 18.000 A 0.000 A 420 0.00 0.00 0 0.00 420-Orange
237612 23557 45 11.000 A 0.000 A 370 0.00 0.00 0 0.00 370-Mint
238116 23587 45 11.000 A 0.000 A 390 0.00 0.00 0 0.00 390-Teal
241556 22952 48 18.000 A 0.000 A 430 0.00 0.00 0 0.00 430-Soft Clay
215391 21943 50 10.000 A 0.000 A EGRN 0.00 0.00 0 3.66 Emerald Green Cloth
217318 22040 50 11.000 A 0.000 A 400 0.00 0.00 0 0.00 400-Barn Red
228604 22952 50 18.000 A 0.000 A 470 0.00 0.00 0 0.00 470-Watermelon
237613 23557 50 11.000 A 0.000 A 380 0.00 0.00 0 0.00 380-Chartreuse
238117 23587 50 11.000 A 0.000 A 400 0.00 0.00 0 0.00 400-Barn Red
215392 21943 55 30.000 A 0.000 A FGRN 0.00 0.00 0 10.06 Fern Green Chevron Cloth
217319 22040 55 11.000 A 0.000 A 420 0.00 0.00 0 0.00 420-Orange
228605 22952 55 18.000 A 0.000 A 480 0.00 0.00 0 0.00 480-Blush Pink
237614 23557 55 11.000 A 0.000 A 390 0.00 0.00 0 0.00 390-Teal
238118 23587 55 11.000 A 0.000 A 420 0.00 0.00 0 0.00 420-Orange
241172 22040 58 11.000 A 0.000 A 430 0.00 0.00 0 0.00 430-Soft Clay
241182 23587 58 11.000 A 0.000 A 430 0.00 0.00 0 0.00 430-Soft Clay
217320 22040 60 11.000 A 0.000 A 470 0.00 0.00 0 0.00 470-Watermelon
228606 22952 60 18.000 A 0.000 A 490 0.00 0.00 0 0.00 490-Magenta
237615 23557 60 11.000 A 0.000 A 400 0.00 0.00 0 0.00 400-Barn Red
238119 23587 60 11.000 A 0.000 A 470 0.00 0.00 0 0.00 470-Watermelon
217321 22040 65 11.000 A 0.000 A 480 0.00 0.00 0 0.00 480-Blush Pink
228607 22952 65 18.000 A 0.000 A 495 0.00 0.00 0 0.00 495-Sherbet Orange
237616 23557 65 11.000 A 0.000 A 420 0.00 0.00 0 0.00 420-Orange
238120 23587 65 11.000 A 0.000 A 480 0.00 0.00 0 0.00 480-Blush Pink
242794 23557 68 11.000 A 0.000 A 430 0.00 0.00 0 0.00 430-Soft Clay
215395 21943 70 10.000 A 0.000 A SFM 0.00 0.00 0 3.66 Seafoam Cloth
217322 22040 70 11.000 A 0.000 A 490 0.00 0.00 0 0.00 490-Magenta
228608 22952 70 18.000 A 0.000 A 500 0.00 0.00 0 0.00 500-Buttery Yellow
237617 23557 70 11.000 A 0.000 A 470 0.00 0.00 0 0.00 470-Watermelon
238121 23587 70 11.000 A 0.000 A 490 0.00 0.00 0 0.00 490-Magenta
215396 21943 75 10.000 A 0.000 A SBLU 0.00 0.00 0 3.66 Sky Blue Cloth
217323 22040 75 11.000 A 0.000 A 495 0.00 0.00 0 0.00 495-Sherbet Orange
228609 22952 75 18.000 A 0.000 A 570 0.00 0.00 0 0.00 570-Sunflower
237618 23557 75 11.000 A 0.000 A 480 0.00 0.00 0 0.00 480-Blush Pink
238122 23587 75 11.000 A 0.000 A 495 0.00 0.00 0 0.00 495-Sherbet Orange
215397 21943 80 10.000 A 0.000 A RBLU 0.00 0.00 0 3.66 Royal Blue Cloth
217324 22040 80 11.000 A 0.000 A 500 0.00 0.00 0 0.00 500-Buttery Yellow
228610 22952 80 18.000 A 0.000 A 600 0.00 0.00 0 0.00 600-Bronze
237619 23557 80 11.000 A 0.000 A 490 0.00 0.00 0 0.00 490-Magenta
238123 23587 80 11.000 A 0.000 A 500 0.00 0.00 0 0.00 500-Buttery Yellow
215398 21943 85 10.000 A 0.000 A NVY 0.00 0.00 0 3.66 Navy Cloth
217325 22040 85 11.000 A 0.000 A 570 0.00 0.00 0 0.00 570-Sunflower
228611 22952 85 18.000 A 0.000 A 601 0.00 0.00 0 0.00 601-Chocolate
237620 23557 85 11.000 A 0.000 A 495 0.00 0.00 0 0.00 495-Sherbet Orange
238124 23587 85 11.000 A 0.000 A 570 0.00 0.00 0 0.00 570-Sunflower
241557 22952 88 18.000 A 0.000 A 607 0.00 0.00 0 0.00 607-Taupe
217326 22040 90 11.000 A 0.000 A 600 0.00 0.00 0 0.00 600-Bronze
237621 23557 90 11.000 A 0.000 A 500 0.00 0.00 0 0.00 500-Buttery Yellow
238125 23587 90 11.000 A 0.000 A 600 0.00 0.00 0 0.00 600-Bronze
217327 22040 95 11.000 A 0.000 A 601 0.00 0.00 0 0.00 601-Chocolate
228613 22952 95 18.000 A 0.000 A 615 0.00 0.00 0 0.00 615-Oil-Rubbed Bronze
237622 23557 95 11.000 A 0.000 A 570 0.00 0.00 0 0.00 570-Sunflower
238126 23587 95 11.000 A 0.000 A 601 0.00 0.00 0 0.00 601-Chocolate
241173 22040 98 11.000 A 0.000 A 607 0.00 0.00 0 0.00 607-Taupe
241183 23587 98 11.000 A 0.000 A 607 0.00 0.00 0 0.00 607-Taupe
241558 22952 98 18.000 A 0.000 A 630 0.00 0.00 0 0.00 630-Beige
217328 22040 100 11.000 A 0.000 A 615 0.00 0.00 0 0.00 615-Oil-Rubbed Bronze
228614 22952 100 18.000 A 0.000 A 700 0.00 0.00 0 0.00 700-Royal Blue
237623 23557 100 11.000 A 0.000 A 600 0.00 0.00 0 0.00 600-Bronze
238127 23587 100 11.000 A 0.000 A 615 0.00 0.00 0 0.00 615-Oil-Rubbed Bronze
228615 22952 105 18.000 A 0.000 A 705 0.00 0.00 0 0.00 705-Navy
237624 23557 105 11.000 A 0.000 A 601 0.00 0.00 0 0.00 601-Chocolate
241174 22040 105 11.000 A 0.000 A 630 0.00 0.00 0 0.00 630-Beige
241184 23587 105 11.000 A 0.000 A 630 0.00 0.00 0 0.00 630-Beige
242510 22952 107 18.000 A 0.000 A 710 0.00 0.00 0 0.00 710-Cobalt Blue
242795 23557 108 11.000 A 0.000 A 607 0.00 0.00 0 0.00 607-Taupe
242511 22952 109 18.000 A 0.000 A 715 0.00 0.00 0 0.00 715-Delphite Blue
217329 22040 110 11.000 A 0.000 A 700 0.00 0.00 0 0.00 700-Royal Blue
228616 22952 110 18.000 A 0.000 A 790 0.00 0.00 0 0.00 790-Lavender
237625 23557 110 11.000 A 0.000 A 615 0.00 0.00 0 0.00 615-Oil-Rubbed Bronze
238128 23587 110 11.000 A 0.000 A 700 0.00 0.00 0 0.00 700-Royal Blue
242796 23557 113 11.000 A 0.000 A 630 0.00 0.00 0 0.00 630-Beige
217330 22040 115 11.000 A 0.000 A 705 0.00 0.00 0 0.00 705-Navy
228617 22952 115 18.000 A 0.000 A 800 0.00 0.00 0 0.00 800-Industrial Grey
237626 23557 115 11.000 A 0.000 A 700 0.00 0.00 0 0.00 700-Royal Blue
238129 23587 115 11.000 A 0.000 A 705 0.00 0.00 0 0.00 705-Navy
242264 22040 118 11.000 A 0.000 A 710 0.00 0.00 0 0.00 710-Cobalt Blue
242268 23587 118 11.000 A 0.000 A 710 0.00 0.00 0 0.00 710-Cobalt Blue
242265 22040 119 11.000 A 0.000 A 715 0.00 0.00 0 0.00 715-Delphite Blue
242269 23587 119 11.000 A 0.000 A 715 0.00 0.00 0 0.00 715-Delphite Blue
217331 22040 120 11.000 A 0.000 A 790 0.00 0.00 0 0.00 790-Lavender
228618 22952 120 18.000 A 0.000 A 805 0.00 0.00 0 0.00 805-Charcoal Granite
237627 23557 120 11.000 A 0.000 A 705 0.00 0.00 0 0.00 705-Navy
238130 23587 120 11.000 A 0.000 A 790 0.00 0.00 0 0.00 790-Lavender
242512 22952 122 18.000 A 0.000 A 810 0.00 0.00 0 0.00 810-Graphite
237631 23557 123 11.000 A 0.000 A 710 0.00 0.00 0 0.00 710-Cobalt Blue
241559 22952 123 18.000 A 0.000 A 815 0.00 0.00 0 0.00 815-Light Grey
237632 23557 124 11.000 A 0.000 A 715 0.00 0.00 0 0.00 715-Delphite Blue
217332 22040 125 11.000 A 0.000 A 800 0.00 0.00 0 0.00 800-Industrial Grey
237628 23557 125 11.000 A 0.000 A 800 0.00 0.00 0 0.00 800-Industrial Grey
238131 23587 125 11.000 A 0.000 A 800 0.00 0.00 0 0.00 800-Industrial Grey
217333 22040 130 11.000 A 0.000 A 805 0.00 0.00 0 0.00 805-Charcoal Granite
238132 23587 130 11.000 A 0.000 A 805 0.00 0.00 0 0.00 805-Charcoal Granite
242266 22040 132 11.000 A 0.000 A 810 0.00 0.00 0 0.00 810-Graphite
242270 23587 132 11.000 A 0.000 A 810 0.00 0.00 0 0.00 810-Graphite
241175 22040 133 11.000 A 0.000 A 815 0.00 0.00 0 0.00 815-Light Grey
241185 23587 133 11.000 A 0.000 A 815 0.00 0.00 0 0.00 815-Light Grey
237629 23557 135 11.000 A 0.000 A 805 0.00 0.00 0 0.00 805-Charcoal Granite
237633 23557 137 11.000 A 0.000 A 810 0.00 0.00 0 0.00 810-Graphite
242797 23557 138 11.000 A 0.000 A 815 0.00 0.00 0 0.00 815-Light Grey