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 (
    23152, 23155, 23857, 23858, 23859, 23860, 
    23156
  ) 
  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": 167,
          "filtered": 100,
          "index_condition": "a.option_id in (23152,23155,23857,23858,23859,23860,23156) 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
231294 23152 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
231394 23155 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
231425 23156 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
240507 23857 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
240536 23858 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
240559 23859 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
240582 23860 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
231264 23152 3 0.000 A 0.000 A 100 0.00 0.00 0 0.00 100-Black
240506 23857 3 0.000 A 0.000 A 7FT 0.00 0.00 0 0.00 7' of Cord
240514 23858 3 0.000 A 0.000 A SBK 0.00 0.00 0 0.00 Standard Black
240537 23859 3 5.000 A 0.000 A SBK 0.00 0.00 0 2.10 Standard Black
240560 23860 3 30.000 A 0.000 A SBK 0.00 0.00 0 5.26 Standard Black
231265 23152 5 0.000 A 0.000 A 105 0.00 0.00 0 0.00 105-Textured Black
231364 23155 5 0.000 A 0.000 A 100 0.00 0.00 0 0.00 100-Black
231395 23156 5 0.000 A 0.000 A 100 0.00 0.00 0 0.00 100-Black
240508 23857 5 0.000 A 0.000 A 12FT 0.00 0.00 0 0.00 12' of Cord
240515 23858 5 5.000 A 0.000 A SWH 0.00 0.00 0 0.32 Standard White
240538 23859 5 10.000 A 0.000 A SWH 0.00 0.00 0 3.18 Standard White
240561 23860 5 35.000 A 0.000 A SWH 0.00 0.00 0 7.26 Standard White
231266 23152 10 0.000 A 0.000 A 200 0.00 0.00 0 0.00 200-White
231365 23155 10 0.000 A 0.000 A 105 0.00 0.00 0 0.00 105-Textured Black
231396 23156 10 0.000 A 0.000 A 105 0.00 0.00 0 0.00 105-Textured Black
240509 23857 10 0.000 A 0.000 A 20FT 0.00 0.00 0 0.00 20' of Cord
240516 23858 10 10.000 A 0.000 A CSB 0.00 0.00 0 3.66 Black Cloth
240539 23859 10 15.000 A 0.000 A CSB 0.00 0.00 0 5.70 Black Cloth
240562 23860 10 40.000 A 0.000 A CSB 0.00 0.00 0 11.46 Black Cloth
231267 23152 15 0.000 A 0.000 A 300 0.00 0.00 0 0.00 300-Dark Green
231366 23155 15 0.000 A 0.000 A 200 0.00 0.00 0 0.00 200-White
231397 23156 15 0.000 A 0.000 A 200 0.00 0.00 0 0.00 200-White
240517 23858 15 10.000 A 0.000 A SLVR 0.00 0.00 0 3.66 Silver Cloth
240540 23859 15 20.000 A 0.000 A SLVR 0.00 0.00 0 7.02 Silver Cloth
240563 23860 15 40.000 A 0.000 A SLVR 0.00 0.00 0 13.66 Silver Cloth
231289 23152 18 0.000 A 0.000 A 975 0.00 0.00 0 0.00 975-Galvanized
231282 23152 19 0.000 A 0.000 A 605 0.00 0.00 0 0.00 605-Textured Rust
231367 23155 20 0.000 A 0.000 A 300 0.00 0.00 0 0.00 300-Dark Green
231398 23156 20 0.000 A 0.000 A 300 0.00 0.00 0 0.00 300-Dark Green
240518 23858 20 10.000 A 0.000 A CRM 0.00 0.00 0 3.66 Creme Cloth
240541 23859 20 20.000 A 0.000 A CRM 0.00 0.00 0 7.02 Creme Cloth
240564 23860 20 40.000 A 0.000 A CRM 0.00 0.00 0 13.66 Creme Cloth
237130 23152 21 18.000 A 0.000 A 106 0.00 0.00 0 0.00 106-Matte Black
237131 23152 22 18.000 A 0.000 A 206 0.00 0.00 0 0.00 206-Matte White
240526 23858 22 10.000 A 0.000 A BPNK 0.00 0.00 0 3.66 Blush Pink Cloth
240549 23859 22 25.000 A 0.000 A BPNK 0.00 0.00 0 8.98 Blush Pink Cloth
240572 23860 22 50.000 A 0.000 A BPNK 0.00 0.00 0 17.00 Blush Pink Cloth
240535 23858 23 20.000 A 0.000 A CNF 0.00 0.00 0 10.06 Confetti Cloth
240558 23859 23 25.000 A 0.000 A CNF 0.00 0.00 0 8.43 Confetti Cloth
240581 23860 23 50.000 A 0.000 A CNF 0.00 0.00 0 16.00 Confetti Cloth
231268 23152 24 18.000 A 0.000 A 307 0.00 0.00 0 0.00 307-Emerald Green
231368 23155 25 0.000 A 0.000 A 975 0.00 0.00 0 0.00 975-Galvanized
231399 23156 25 0.000 A 0.000 A 975 0.00 0.00 0 0.00 975-Galvanized
240519 23858 25 10.000 A 0.000 A RST 0.00 0.00 0 3.66 Rust Cloth
240542 23859 25 25.000 A 0.000 A RST 0.00 0.00 0 7.02 Rust Cloth
240565 23860 25 50.000 A 0.000 A RST 0.00 0.00 0 17.00 Rust Cloth
242569 23152 25 18.000 A 0.000 A 320 0.00 0.00 0 0.00 320-Fern Green
231269 23152 28 18.000 A 0.000 A 370 0.00 0.00 0 0.00 370-Mint
231270 23152 30 18.000 A 0.000 A 380 0.00 0.00 0 0.00 380-Chartreuse
231400 23156 30 0.000 A 0.000 A 980 0.00 0.00 0 0.00 980-Brushed Aluminum
240520 23858 30 15.000 A 0.000 A RBS 0.00 0.00 0 6.81 Barn Red & Black Swirl Cloth
240543 23859 30 20.000 A 0.000 A RBS 0.00 0.00 0 13.00 Barn Red & Black Swirl Cloth
240566 23860 30 40.000 A 0.000 A RBS 0.00 0.00 0 13.66 Barn Red & Black Swirl Cloth
231271 23152 35 18.000 A 0.000 A 390 0.00 0.00 0 0.00 390-Teal
231370 23155 35 0.000 A 0.000 A 605 0.00 0.00 0 0.00 605-Rust
231401 23156 35 0.000 A 0.000 A 605 0.00 0.00 0 0.00 605-Textured Rust
240521 23858 35 10.000 A 0.000 A ORG 0.00 0.00 0 3.66 Orange Cloth
240544 23859 35 20.000 A 0.000 A ORG 0.00 0.00 0 6.78 Orange Cloth
240567 23860 35 40.000 A 0.000 A ORG 0.00 0.00 0 13.26 Orange Cloth
237132 23155 37 11.000 A 0.000 A 106 0.00 0.00 0 0.00 106-Matte Black
237133 23155 38 11.000 A 0.000 A 206 0.00 0.00 0 0.00 206-Matte White
231272 23152 40 18.000 A 0.000 A 400 0.00 0.00 0 0.00 400-Barn Red
231371 23155 40 11.000 A 0.000 A 307 0.00 0.00 0 0.00 307-Emerald Green
231402 23156 40 11.000 A 0.000 A 307 0.00 0.00 0 0.00 307-Emerald Green
240522 23858 40 10.000 A 0.000 A YLW 0.00 0.00 0 3.66 Buttery Yellow Cloth
240545 23859 40 42.000 A 0.000 A YLW 0.00 0.00 0 14.94 Buttery Yellow Cloth
240568 23860 40 80.000 A 0.000 A YLW 0.00 0.00 0 26.86 Buttery Yellow Cloth
231273 23152 45 18.000 A 0.000 A 420 0.00 0.00 0 0.00 420-Orange
231372 23155 45 11.000 A 0.000 A 370 0.00 0.00 0 0.00 370-Mint
231403 23156 45 11.000 A 0.000 A 370 0.00 0.00 0 0.00 370-Mint
240523 23858 45 10.000 A 0.000 A NGRN 0.00 0.00 0 3.66 Neon Green Cloth
240546 23859 45 25.000 A 0.000 A NGRN 0.00 0.00 0 8.93 Neon Green Cloth
240569 23860 45 50.000 A 0.000 A NGRN 0.00 0.00 0 16.84 Neon Green Cloth
242570 23152 48 18.000 A 0.000 A 430 0.00 0.00 0 0.00 430-Soft Clay
231274 23152 50 18.000 A 0.000 A 470 0.00 0.00 0 0.00 470-Watermelon
231373 23155 50 11.000 A 0.000 A 380 0.00 0.00 0 0.00 380-Chartreuse
231404 23156 50 11.000 A 0.000 A 380 0.00 0.00 0 0.00 380-Chartreuse
240524 23858 50 10.000 A 0.000 A EGRN 0.00 0.00 0 3.66 Emerald Green Cloth
240547 23859 50 25.000 A 0.000 A EGRN 0.00 0.00 0 9.06 Emerald Green Cloth
240570 23860 50 50.000 A 0.000 A EGRN 0.00 0.00 0 17.06 Emerald Green Cloth
231275 23152 55 18.000 A 0.000 A 480 0.00 0.00 0 0.00 480-Blush Pink
231374 23155 55 11.000 A 0.000 A 390 0.00 0.00 0 0.00 390-Teal
231405 23156 55 11.000 A 0.000 A 390 0.00 0.00 0 0.00 390-Teal
240525 23858 55 20.000 A 0.000 A FGRN 0.00 0.00 0 10.06 Fern Green Chevron Cloth
240548 23859 55 25.000 A 0.000 A FGRN 0.00 0.00 0 8.94 Fern Green Chevron Cloth
240571 23860 55 50.000 A 0.000 A FGRN 0.00 0.00 0 16.86 Fern Green Chevron Cloth
231276 23152 60 18.000 A 0.000 A 490 0.00 0.00 0 0.00 490-Magenta
231375 23155 60 11.000 A 0.000 A 400 0.00 0.00 0 0.00 400-Barn Red
231406 23156 60 11.000 A 0.000 A 400 0.00 0.00 0 0.00 400-Barn Red
231277 23152 65 18.000 A 0.000 A 495 0.00 0.00 0 0.00 495-Sherbet Orange
231376 23155 65 11.000 A 0.000 A 420 0.00 0.00 0 0.00 420-Orange
231407 23156 65 11.000 A 0.000 A 420 0.00 0.00 0 0.00 420-Orange
231278 23152 70 18.000 A 0.000 A 500 0.00 0.00 0 0.00 500-Buttery Yellow
231377 23155 70 11.000 A 0.000 A 470 0.00 0.00 0 0.00 470-Watermelon
231408 23156 70 11.000 A 0.000 A 470 0.00 0.00 0 0.00 470-Watermelon
240527 23858 70 10.000 A 0.000 A SFM 0.00 0.00 0 3.66 Seafoam Cloth
240550 23859 70 25.000 A 0.000 A SFM 0.00 0.00 0 9.18 Seafoam Cloth
240573 23860 70 50.000 A 0.000 A SFM 0.00 0.00 0 17.26 Seafoam Cloth
231279 23152 75 18.000 A 0.000 A 570 0.00 0.00 0 0.00 570-Sunflower
231378 23155 75 11.000 A 0.000 A 480 0.00 0.00 0 0.00 480-Blush Pink
231409 23156 75 11.000 A 0.000 A 480 0.00 0.00 0 0.00 480-Blush Pink
240528 23858 75 10.000 A 0.000 A SBLU 0.00 0.00 0 3.66 Sky Blue Cloth
240551 23859 75 25.000 A 0.000 A SBLU 0.00 0.00 0 8.94 Sky Blue Cloth
240574 23860 75 50.000 A 0.000 A SBLU 0.00 0.00 0 16.86 Sky Blue Cloth
231280 23152 80 18.000 A 0.000 A 600 0.00 0.00 0 0.00 600-Bronze
231379 23155 80 11.000 A 0.000 A 490 0.00 0.00 0 0.00 490-Magenta
231410 23156 80 11.000 A 0.000 A 490 0.00 0.00 0 0.00 490-Magenta
240529 23858 80 10.000 A 0.000 A RBLU 0.00 0.00 0 3.66 Royal Blue Cloth
240552 23859 80 20.000 A 0.000 A RBLU 0.00 0.00 0 6.81 Royal Blue Cloth
240575 23860 80 40.000 A 0.000 A RBLU 0.00 0.00 0 13.31 Royal Blue Cloth
231281 23152 85 18.000 A 0.000 A 601 0.00 0.00 0 0.00 601-Chocolate
231380 23155 85 11.000 A 0.000 A 495 0.00 0.00 0 0.00 495-Sherbet Orange
231411 23156 85 11.000 A 0.000 A 495 0.00 0.00 0 0.00 495-Sherbet Orange
240530 23858 85 10.000 A 0.000 A NVY 0.00 0.00 0 3.66 Navy Cloth
240553 23859 85 42.000 A 0.000 A NVY 0.00 0.00 0 14.94 Navy Cloth
240576 23860 85 80.000 A 0.000 A NVY 0.00 0.00 0 26.86 Navy Cloth
242571 23152 88 18.000 A 0.000 A 607 0.00 0.00 0 0.00 607-Taupe
231381 23155 90 11.000 A 0.000 A 500 0.00 0.00 0 0.00 500-Buttery Yellow
231412 23156 90 11.000 A 0.000 A 500 0.00 0.00 0 0.00 500-Buttery Yellow
231283 23152 95 18.000 A 0.000 A 615 0.00 0.00 0 0.00 615-Oil-Rubbed Bronze
231382 23155 95 11.000 A 0.000 A 570 0.00 0.00 0 0.00 570-Sunflower
231413 23156 95 11.000 A 0.000 A 570 0.00 0.00 0 0.00 570-Sunflower
242572 23152 98 18.000 A 0.000 A 630 0.00 0.00 0 0.00 630-Beige
231284 23152 100 18.000 A 0.000 A 700 0.00 0.00 0 0.00 700-Royal Blue
231383 23155 100 11.000 A 0.000 A 600 0.00 0.00 0 0.00 600-Bronze
231414 23156 100 11.000 A 0.000 A 600 0.00 0.00 0 0.00 600-Bronze
231285 23152 105 18.000 A 0.000 A 705 0.00 0.00 0 0.00 705-Navy
231384 23155 105 11.000 A 0.000 A 601 0.00 0.00 0 0.00 601-Chocolate
231415 23156 105 11.000 A 0.000 A 601 0.00 0.00 0 0.00 601-Chocolate
231286 23152 110 18.000 A 0.000 A 790 0.00 0.00 0 0.00 790-Lavender
231385 23155 110 11.000 A 0.000 A 615 0.00 0.00 0 0.00 615-Oil-Rubbed Bronze
231416 23156 110 11.000 A 0.000 A 615 0.00 0.00 0 0.00 615-Oil-Rubbed Bronze
231287 23152 115 18.000 A 0.000 A 800 0.00 0.00 0 0.00 800-Industrial Grey
231386 23155 115 11.000 A 0.000 A 700 0.00 0.00 0 0.00 700-Royal Blue
231417 23156 115 11.000 A 0.000 A 700 0.00 0.00 0 0.00 700-Royal Blue
231288 23152 120 18.000 A 0.000 A 805 0.00 0.00 0 0.00 805-Charcoal Granite
231387 23155 120 11.000 A 0.000 A 705 0.00 0.00 0 0.00 705-Navy
231418 23156 120 11.000 A 0.000 A 705 0.00 0.00 0 0.00 705-Navy
242573 23152 123 18.000 A 0.000 A 815 0.00 0.00 0 0.00 815-Light Grey
231388 23155 125 11.000 A 0.000 A 800 0.00 0.00 0 0.00 800-Industrial Grey
231419 23156 125 11.000 A 0.000 A 800 0.00 0.00 0 0.00 800-Industrial Grey
231290 23152 130 18.000 A 0.000 A 311 0.00 0.00 0 0.00 311-Jadite
231291 23152 135 29.000 A 0.000 A 710 0.00 0.00 0 0.00 710-Cobalt Blue
231389 23155 135 11.000 A 0.000 A 805 0.00 0.00 0 0.00 805-Charcoal Granite
231420 23156 135 11.000 A 0.000 A 805 0.00 0.00 0 0.00 805-Charcoal Granite
231292 23152 140 29.000 A 0.000 A 715 0.00 0.00 0 0.00 715-Delphite Blue
231390 23155 140 11.000 A 0.000 A 311 0.00 0.00 0 0.00 311-Jadite
231421 23156 140 11.000 A 0.000 A 311 0.00 0.00 0 0.00 311-Jadite
231293 23152 145 29.000 A 0.000 A 810 0.00 0.00 0 0.00 810-Graphite
231391 23155 145 17.000 A 0.000 A 710 0.00 0.00 0 0.00 710-Cobalt Blue
231422 23156 145 17.000 A 0.000 A 710 0.00 0.00 0 0.00 710-Cobalt Blue
231295 23152 150 50.000 A 0.000 A 995 0.00 0.00 0 0.00 995-Raw Copper
231392 23155 150 17.000 A 0.000 A 715 0.00 0.00 0 0.00 715-Delphite Blue
231423 23156 150 17.000 A 0.000 A 715 0.00 0.00 0 0.00 715-Delphite Blue
231296 23152 155 66.000 A 0.000 A 996 0.00 0.00 0 0.00 996-Weathered Copper
231393 23155 155 17.000 A 0.000 A 810 0.00 0.00 0 0.00 810-Graphite
231424 23156 155 17.000 A 0.000 A 810 0.00 0.00 0 0.00 810-Graphite
231297 23152 160 83.000 A 0.000 A 999 0.00 0.00 0 0.00 999-Oil-Rubbed Copper
231298 23152 165 66.000 A 0.000 A 997 0.00 0.00 0 0.00 997-Raw Brass
231299 23152 170 99.000 A 0.000 A 998 0.00 0.00 0 0.00 998-Weathered Brass