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 (
    22908, 22117, 22909, 21951, 22913, 21954, 
    22067, 22040, 23587, 21941
  ) 
  AND a.status = 'A' 
ORDER BY 
  a.position, 
  a.variant_id

Query time 0.00265

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": 196,
          "filtered": 100,
          "index_condition": "a.option_id in (22908,22117,22909,21951,22913,21954,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
220137 22117 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
220144 21951 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
220173 21954 0 0.000 A 0.000 A skip 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
228031 22908 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
228032 22909 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
228134 22913 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
215513 21951 3 0.000 A 0.000 A CN36 0.00 0.00 0 0.00 3 Feet of Chain
215556 21954 3 0.000 A 0.000 A SBK 0.00 0.00 0 0.00 Standard Black
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
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
215557 21954 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
228026 22908 5 0.000 A 0.000 A VDBW10 0.00 0.00 0 0.00 10" Shade
228033 22909 5 0.000 A 0.000 A VC 0.00 0.00 0 0.00 Circle Vent
228104 22913 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
215558 21954 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
228027 22908 10 24.000 A 0.000 A VDBW12 0.00 0.00 0 0.00 12" Shade
228034 22909 10 0.000 A 0.000 A VS 0.00 0.00 0 0.00 Narrow Slot Vent
228105 22913 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
215516 21951 15 25.000 A 0.000 A CN72 0.00 0.00 0 0.00 6 Feet of Chain
215559 21954 15 10.000 A 0.000 A SLVR 0.00 0.00 0 3.66 Silver Cloth
217311 22040 15 0.000 A 0.000 A 300 0.00 0.00 0 0.00 300-Dark Green
228028 22908 15 36.000 A 0.000 A VDBW14 0.00 0.00 0 0.00 14" Shade
228106 22913 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
215560 21954 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
228029 22908 20 47.000 A 0.000 A VDBW16 0.00 0.00 0 0.00 16" Shade
228107 22913 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
215561 21954 25 10.000 A 0.000 A BPNK 0.00 0.00 0 3.66 Blush Pink Cloth
217313 22040 25 0.000 A 0.000 A 605 0.00 0.00 0 0.00 605-Textured Rust
228030 22908 25 82.000 A 0.000 A VDBW20 0.00 0.00 0 0.00 20" Shade
228108 22913 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
217978 22117 26 0.000 A 0.000 A 100 0.00 0.00 0 0.00 100-Black
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
217979 22117 28 0.000 A 0.000 A 105 0.00 0.00 0 0.00 105-Textured Black
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
215562 21954 30 30.000 A 0.000 A CNF 0.00 0.00 0 10.66 Confetti Cloth
217314 22040 30 11.000 A 0.000 A 307 0.00 0.00 0 0.00 307-Emerald Green
217980 22117 30 0.000 A 0.000 A 200 0.00 0.00 0 0.00 200-White
238113 23587 30 11.000 A 0.000 A 307 0.00 0.00 0 0.00 307-Emerald Green
238318 22908 30 143.000 A 0.000 A VDBW24 0.00 0.00 0 0.00 24" Shade
217981 22117 32 0.000 A 0.000 A 300 0.00 0.00 0 0.00 300-Dark 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
217982 22117 34 0.000 A 0.000 A 975 0.00 0.00 0 0.00 975-Galvanized
215563 21954 35 10.000 A 0.000 A RST 0.00 0.00 0 3.66 Rust Cloth
217315 22040 35 11.000 A 0.000 A 370 0.00 0.00 0 0.00 370-Mint
228110 22913 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
217983 22117 36 0.000 A 0.000 A 605 0.00 0.00 0 0.00 605-Textured Rust
242725 22913 37 11.000 A 0.000 A 106 0.00 0.00 0 0.00 106-Matte Black
237042 22117 38 18.000 A 0.000 A 106 0.00 0.00 0 0.00 106-Matte Black
242726 22913 38 11.000 A 0.000 A 206 0.00 0.00 0 0.00 206-Matte White
215564 21954 40 15.000 A 0.000 A RBS 0.00 0.00 0 6.81 Barn Red & Black Swirl Cloth
217316 22040 40 11.000 A 0.000 A 380 0.00 0.00 0 0.00 380-Chartreuse
228111 22913 40 11.000 A 0.000 A 307 0.00 0.00 0 0.00 307-Emerald Green
237043 22117 40 18.000 A 0.000 A 206 0.00 0.00 0 0.00 206-Matte White
238115 23587 40 11.000 A 0.000 A 380 0.00 0.00 0 0.00 380-Chartreuse
217984 22117 42 18.000 A 0.000 A 307 0.00 0.00 0 0.00 307-Emerald Green
241136 22913 43 11.000 A 0.000 A 320 0.00 0.00 0 0.00 320-Fern Green
242635 22117 44 18.000 A 0.000 A 311 0.00 0.00 0 0.00 311-Jadite
215565 21954 45 10.000 A 0.000 A ORG 0.00 0.00 0 3.66 Orange Cloth
217317 22040 45 11.000 A 0.000 A 390 0.00 0.00 0 0.00 390-Teal
228112 22913 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
241100 22117 46 18.000 A 0.000 A 320 0.00 0.00 0 0.00 320-Fern Green
217985 22117 48 18.000 A 0.000 A 370 0.00 0.00 0 0.00 370-Mint
215566 21954 50 10.000 A 0.000 A YLW 0.00 0.00 0 3.66 Buttery Yellow Cloth
217318 22040 50 11.000 A 0.000 A 400 0.00 0.00 0 0.00 400-Barn Red
217986 22117 50 18.000 A 0.000 A 380 0.00 0.00 0 0.00 380-Chartreuse
228113 22913 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
217987 22117 52 18.000 A 0.000 A 390 0.00 0.00 0 0.00 390-Teal
217988 22117 54 18.000 A 0.000 A 400 0.00 0.00 0 0.00 400-Barn Red
215567 21954 55 10.000 A 0.000 A NGRN 0.00 0.00 0 3.66 Neon Green Cloth
217319 22040 55 11.000 A 0.000 A 420 0.00 0.00 0 0.00 420-Orange
228114 22913 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
217989 22117 56 18.000 A 0.000 A 420 0.00 0.00 0 0.00 420-Orange
241101 22117 58 18.000 A 0.000 A 430 0.00 0.00 0 0.00 430-Soft Clay
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
215568 21954 60 10.000 A 0.000 A EGRN 0.00 0.00 0 3.66 Emerald Green Cloth
217320 22040 60 11.000 A 0.000 A 470 0.00 0.00 0 0.00 470-Watermelon
217990 22117 60 18.000 A 0.000 A 470 0.00 0.00 0 0.00 470-Watermelon
228115 22913 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
215569 21954 65 30.000 A 0.000 A FGRN 0.00 0.00 0 10.66 Fern Green Chevron Cloth
217321 22040 65 11.000 A 0.000 A 480 0.00 0.00 0 0.00 480-Blush Pink
217991 22117 65 18.000 A 0.000 A 480 0.00 0.00 0 0.00 480-Blush Pink
228116 22913 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
241137 22913 68 11.000 A 0.000 A 430 0.00 0.00 0 0.00 430-Soft Clay
217322 22040 70 11.000 A 0.000 A 490 0.00 0.00 0 0.00 490-Magenta
217992 22117 70 18.000 A 0.000 A 490 0.00 0.00 0 0.00 490-Magenta
228117 22913 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
243103 21954 70 10.000 A 0.000 A SFM 0.00 0.00 0 3.66 Seafoam Cloth
217323 22040 75 11.000 A 0.000 A 495 0.00 0.00 0 0.00 495-Sherbet Orange
217993 22117 75 18.000 A 0.000 A 495 0.00 0.00 0 0.00 495-Sherbet Orange
228118 22913 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
243104 21954 75 10.000 A 0.000 A SBLU 0.00 0.00 0 3.66 Sky Blue Cloth
217324 22040 80 11.000 A 0.000 A 500 0.00 0.00 0 0.00 500-Buttery Yellow
217994 22117 80 18.000 A 0.000 A 500 0.00 0.00 0 0.00 500-Buttery Yellow
228119 22913 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
243105 21954 80 10.000 A 0.000 A RBLU 0.00 0.00 0 3.66 Royal Blue Cloth
217325 22040 85 11.000 A 0.000 A 570 0.00 0.00 0 0.00 570-Sunflower
217995 22117 85 18.000 A 0.000 A 570 0.00 0.00 0 0.00 570-Sunflower
228120 22913 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
243106 21954 85 10.000 A 0.000 A NVY 0.00 0.00 0 3.66 Navy Cloth
217326 22040 90 11.000 A 0.000 A 600 0.00 0.00 0 0.00 600-Bronze
217996 22117 90 18.000 A 0.000 A 600 0.00 0.00 0 0.00 600-Bronze
228121 22913 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
217997 22117 95 18.000 A 0.000 A 601 0.00 0.00 0 0.00 601-Chocolate
228122 22913 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
241102 22117 98 18.000 A 0.000 A 607 0.00 0.00 0 0.00 607-Taupe
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
217328 22040 100 11.000 A 0.000 A 615 0.00 0.00 0 0.00 615-Oil-Rubbed Bronze
217998 22117 100 18.000 A 0.000 A 615 0.00 0.00 0 0.00 615-Oil-Rubbed Bronze
228123 22913 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
241103 22117 103 18.000 A 0.000 A 630 0.00 0.00 0 0.00 630-Beige
217999 22117 105 18.000 A 0.000 A 700 0.00 0.00 0 0.00 700-Royal Blue
228124 22913 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
241138 22913 107 11.000 A 0.000 A 607 0.00 0.00 0 0.00 607-Taupe
217329 22040 110 11.000 A 0.000 A 700 0.00 0.00 0 0.00 700-Royal Blue
218000 22117 110 18.000 A 0.000 A 705 0.00 0.00 0 0.00 705-Navy
228125 22913 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
242636 22117 112 18.000 A 0.000 A 710 0.00 0.00 0 0.00 710-Cobalt Blue
241139 22913 113 11.000 A 0.000 A 630 0.00 0.00 0 0.00 630-Beige
242637 22117 113 18.000 A 0.000 A 715 0.00 0.00 0 0.00 715-Delphite Blue
217330 22040 115 11.000 A 0.000 A 705 0.00 0.00 0 0.00 705-Navy
218001 22117 115 18.000 A 0.000 A 790 0.00 0.00 0 0.00 790-Lavender
228126 22913 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
218002 22117 120 18.000 A 0.000 A 800 0.00 0.00 0 0.00 800-Industrial Grey
228127 22913 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
228216 22913 123 11.000 A 0.000 A 790 0.00 0.00 0 0.00 790-Lavender
217332 22040 125 11.000 A 0.000 A 800 0.00 0.00 0 0.00 800-Industrial Grey
218003 22117 125 18.000 A 0.000 A 805 0.00 0.00 0 0.00 805-Charcoal Granite
228128 22913 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
242638 22117 126 18.000 A 0.000 A 810 0.00 0.00 0 0.00 810-Graphite
241104 22117 128 18.000 A 0.000 A 815 0.00 0.00 0 0.00 815-Light 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
228129 22913 135 11.000 A 0.000 A 805 0.00 0.00 0 0.00 805-Charcoal Granite
241140 22913 138 11.000 A 0.000 A 815 0.00 0.00 0 0.00 815-Light Grey
242717 22913 140 11.000 A 0.000 A 311 0.00 0.00 0 0.00 311-Jadite
242718 22913 142 11.000 A 0.000 A 710 0.00 0.00 0 0.00 710-Cobalt Blue
242719 22913 144 11.000 A 0.000 A 715 0.00 0.00 0 0.00 715-Delphite Blue
242720 22913 146 11.000 A 0.000 A 810 0.00 0.00 0 0.00 810-Graphite
218008 22117 150 160.000 A 0.000 A 995 0.00 0.00 0 0.00 995-Raw Copper
218009 22117 155 200.000 A 0.000 A 996 0.00 0.00 0 0.00 996-Weathered Copper
218010 22117 160 250.000 A 0.000 A 999 0.00 0.00 0 0.00 999-Oil-Rubbed Copper
218011 22117 165 210.000 A 0.000 A 997 0.00 0.00 0 0.00 997-Raw Brass
218012 22117 170 250.000 A 0.000 A 998 0.00 0.00 0 0.00 998-Weathered Brass