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 (
    23187, 23523, 23524, 22254, 22040, 22675, 
    22644, 22645
  ) 
  AND a.status = 'A' 
ORDER BY 
  a.position, 
  a.variant_id

Query time 0.00231

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": 132,
          "filtered": 100,
          "index_condition": "a.option_id in (23187,23523,23524,22254,22040,22675,22644,22645) 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
220238 22254 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
223755 22644 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
223760 22645 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
224224 22675 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
231944 23187 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
236498 23523 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
236530 23524 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
217308 22040 3 0.000 A 0.000 A 100 0.00 0.00 0 0.00 100-Black
236468 23523 3 0.000 A 0.000 A 100 0.00 0.00 0 0.00 100-Black
236499 23524 3 0.000 A 0.000 A 0.00 0.00 23523 0.00 Same as Shade
217309 22040 5 0.000 A 0.000 A 105 0.00 0.00 0 0.00 105-Textured Black
219398 22254 5 0.000 A 0.000 A NA 0.00 0.00 0 0.00 None
223756 22644 5 0.000 A 0.000 A 2700K 0.00 0.00 0 0.00 2700K - Warm White/Soft White
223761 22645 5 0.000 A 0.000 A DL 0.00 0.00 0 0.00 Domed Lens
224225 22675 5 0.000 A 0.000 A LED11 0.00 0.00 0 0.00 850 Lumens
231941 23187 5 0.000 A 0.000 A LAR12 0.00 0.00 0 0.00 12" Shade
236469 23523 5 0.000 A 0.000 A 105 0.00 0.00 0 0.00 105-Textured Black
236500 23524 5 0.000 A 0.000 A 100 0.00 0.00 0 0.00 100-Black
217310 22040 10 0.000 A 0.000 A 200 0.00 0.00 0 0.00 200-White
219399 22254 10 49.000 A 0.000 A WC 0.00 0.00 0 6.25 Wire Cage
223757 22644 10 0.000 A 0.000 A 3000K 0.00 0.00 0 0.00 3000K - Neutral White
223762 22645 10 0.000 A 0.000 A FL 0.00 0.00 0 0.00 Flat Lens
224226 22675 10 0.000 A 0.000 A LED16 0.00 0.00 0 0.00 1250 Lumens
236470 23523 10 0.000 A 0.000 A 200 0.00 0.00 0 0.00 200-White
236501 23524 10 0.000 A 0.000 A 105 0.00 0.00 0 0.00 105-Textured Black
217311 22040 15 0.000 A 0.000 A 300 0.00 0.00 0 0.00 300-Dark Green
223758 22644 15 0.000 A 0.000 A 3500K 0.00 0.00 0 0.00 3500K - Bright White
231943 23187 15 36.000 A 0.000 A LAR16 0.00 0.00 0 0.00 16" Shade
236471 23523 15 0.000 A 0.000 A 300 0.00 0.00 0 0.00 300-Dark Green
236502 23524 15 0.000 A 0.000 A 200 0.00 0.00 0 0.00 200-White
236493 23523 18 0.000 A 0.000 A 975 0.00 0.00 0 0.00 975-Galvanized
236486 23523 19 0.000 A 0.000 A 605 0.00 0.00 0 0.00 605-Textured Rust
217312 22040 20 0.000 A 0.000 A 975 0.00 0.00 0 0.00 975-Galvanized
223759 22644 20 0.000 A 0.000 A 4000K 0.00 0.00 0 0.00 4000K - Cool White
236503 23524 20 0.000 A 0.000 A 300 0.00 0.00 0 0.00 300-Dark Green
239867 23523 21 18.000 A 0.000 A 106 0.00 0.00 0 0.00 106-Matte Black
239868 23523 23 18.000 A 0.000 A 206 0.00 0.00 0 0.00 206-Matte White
236472 23523 24 18.000 A 0.000 A 307 0.00 0.00 0 0.00 307-Emerald Green
217313 22040 25 0.000 A 0.000 A 605 0.00 0.00 0 0.00 605-Textured Rust
236504 23524 25 0.000 A 0.000 A 975 0.00 0.00 0 0.00 975-Galvanized
241640 23523 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
236473 23523 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
217314 22040 30 11.000 A 0.000 A 307 0.00 0.00 0 0.00 307-Emerald Green
236474 23523 30 18.000 A 0.000 A 380 0.00 0.00 0 0.00 380-Chartreuse
236505 23524 30 0.000 A 0.000 A 980 0.00 0.00 0 0.00 980-Brushed Aluminum
242263 22040 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
217315 22040 35 11.000 A 0.000 A 370 0.00 0.00 0 0.00 370-Mint
236475 23523 35 18.000 A 0.000 A 390 0.00 0.00 0 0.00 390-Teal
236506 23524 35 0.000 A 0.000 A 605 0.00 0.00 0 0.00 605-Textured Rust
239869 23524 37 11.000 A 0.000 A 106 0.00 0.00 0 0.00 106-Matte Black
239870 23524 38 11.000 A 0.000 A 206 0.00 0.00 0 0.00 206-Matte White
217316 22040 40 11.000 A 0.000 A 380 0.00 0.00 0 0.00 380-Chartreuse
236476 23523 40 18.000 A 0.000 A 400 0.00 0.00 0 0.00 400-Barn Red
236507 23524 40 11.000 A 0.000 A 307 0.00 0.00 0 0.00 307-Emerald Green
241645 23524 43 11.000 A 0.000 A 320 0.00 0.00 0 0.00 320-Fern Green
217317 22040 45 11.000 A 0.000 A 390 0.00 0.00 0 0.00 390-Teal
236477 23523 45 18.000 A 0.000 A 420 0.00 0.00 0 0.00 420-Orange
236508 23524 45 11.000 A 0.000 A 370 0.00 0.00 0 0.00 370-Mint
241641 23523 48 18.000 A 0.000 A 430 0.00 0.00 0 0.00 430-Soft Clay
217318 22040 50 11.000 A 0.000 A 400 0.00 0.00 0 0.00 400-Barn Red
236478 23523 50 18.000 A 0.000 A 470 0.00 0.00 0 0.00 470-Watermelon
236509 23524 50 11.000 A 0.000 A 380 0.00 0.00 0 0.00 380-Chartreuse
217319 22040 55 11.000 A 0.000 A 420 0.00 0.00 0 0.00 420-Orange
236479 23523 55 18.000 A 0.000 A 480 0.00 0.00 0 0.00 480-Blush Pink
236510 23524 55 11.000 A 0.000 A 390 0.00 0.00 0 0.00 390-Teal
241172 22040 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
236480 23523 60 18.000 A 0.000 A 490 0.00 0.00 0 0.00 490-Magenta
236511 23524 60 11.000 A 0.000 A 400 0.00 0.00 0 0.00 400-Barn Red
217321 22040 65 11.000 A 0.000 A 480 0.00 0.00 0 0.00 480-Blush Pink
236481 23523 65 18.000 A 0.000 A 495 0.00 0.00 0 0.00 495-Sherbet Orange
236512 23524 65 11.000 A 0.000 A 420 0.00 0.00 0 0.00 420-Orange
241646 23524 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
236482 23523 70 18.000 A 0.000 A 500 0.00 0.00 0 0.00 500-Buttery Yellow
236513 23524 70 11.000 A 0.000 A 470 0.00 0.00 0 0.00 470-Watermelon
217323 22040 75 11.000 A 0.000 A 495 0.00 0.00 0 0.00 495-Sherbet Orange
236483 23523 75 18.000 A 0.000 A 570 0.00 0.00 0 0.00 570-Sunflower
236514 23524 75 11.000 A 0.000 A 480 0.00 0.00 0 0.00 480-Blush Pink
217324 22040 80 11.000 A 0.000 A 500 0.00 0.00 0 0.00 500-Buttery Yellow
236484 23523 80 18.000 A 0.000 A 600 0.00 0.00 0 0.00 600-Bronze
236515 23524 80 11.000 A 0.000 A 490 0.00 0.00 0 0.00 490-Magenta
217325 22040 85 11.000 A 0.000 A 570 0.00 0.00 0 0.00 570-Sunflower
236485 23523 85 18.000 A 0.000 A 601 0.00 0.00 0 0.00 601-Chocolate
236516 23524 85 11.000 A 0.000 A 495 0.00 0.00 0 0.00 495-Sherbet Orange
217326 22040 90 11.000 A 0.000 A 600 0.00 0.00 0 0.00 600-Bronze
236517 23524 90 11.000 A 0.000 A 500 0.00 0.00 0 0.00 500-Buttery Yellow
241642 23523 90 18.000 A 0.000 A 607 0.00 0.00 0 0.00 607-Taupe
217327 22040 95 11.000 A 0.000 A 601 0.00 0.00 0 0.00 601-Chocolate
236487 23523 95 18.000 A 0.000 A 615 0.00 0.00 0 0.00 615-Oil-Rubbed Bronze
236518 23524 95 11.000 A 0.000 A 570 0.00 0.00 0 0.00 570-Sunflower
241173 22040 98 11.000 A 0.000 A 607 0.00 0.00 0 0.00 607-Taupe
241643 23523 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
236488 23523 100 18.000 A 0.000 A 700 0.00 0.00 0 0.00 700-Royal Blue
236519 23524 100 11.000 A 0.000 A 600 0.00 0.00 0 0.00 600-Bronze
236489 23523 105 18.000 A 0.000 A 705 0.00 0.00 0 0.00 705-Navy
236520 23524 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
241647 23524 108 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
236490 23523 110 18.000 A 0.000 A 790 0.00 0.00 0 0.00 790-Lavender
236521 23524 110 11.000 A 0.000 A 615 0.00 0.00 0 0.00 615-Oil-Rubbed Bronze
241648 23524 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
236491 23523 115 18.000 A 0.000 A 800 0.00 0.00 0 0.00 800-Industrial Grey
236522 23524 115 11.000 A 0.000 A 700 0.00 0.00 0 0.00 700-Royal Blue
242264 22040 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
217331 22040 120 11.000 A 0.000 A 790 0.00 0.00 0 0.00 790-Lavender
236492 23523 120 18.000 A 0.000 A 805 0.00 0.00 0 0.00 805-Charcoal Granite
236523 23524 120 11.000 A 0.000 A 705 0.00 0.00 0 0.00 705-Navy
241644 23523 123 18.000 A 0.000 A 815 0.00 0.00 0 0.00 815-Light Grey
217332 22040 125 11.000 A 0.000 A 800 0.00 0.00 0 0.00 800-Industrial Grey
236524 23524 125 11.000 A 0.000 A 800 0.00 0.00 0 0.00 800-Industrial Grey
242852 23523 125 18.000 A 0.000 A 311 0.00 0.00 0 0.00 311-Jadite
242853 23523 127 18.000 A 0.000 A 710 0.00 0.00 0 0.00 710-Cobalt Blue
242854 23523 129 18.000 A 0.000 A 715 0.00 0.00 0 0.00 715-Delphite Blue
217333 22040 130 11.000 A 0.000 A 805 0.00 0.00 0 0.00 805-Charcoal Granite
242855 23523 131 18.000 A 0.000 A 810 0.00 0.00 0 0.00 810-Graphite
242266 22040 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
236525 23524 135 11.000 A 0.000 A 805 0.00 0.00 0 0.00 805-Charcoal Granite
241649 23524 138 11.000 A 0.000 A 815 0.00 0.00 0 0.00 815-Light Grey
242856 23524 140 11.000 A 0.000 A 311 0.00 0.00 0 0.00 311-Jadite
242857 23524 142 11.000 A 0.000 A 710 0.00 0.00 0 0.00 710-Cobalt Blue
242858 23524 144 11.000 A 0.000 A 715 0.00 0.00 0 0.00 715-Delphite Blue
242859 23524 146 11.000 A 0.000 A 810 0.00 0.00 0 0.00 810-Graphite