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 (
    22549, 23857, 23858, 23859, 23860, 22550, 
    22551, 21941
  ) 
  AND a.status = 'A' 
ORDER BY 
  a.position, 
  a.variant_id

Query time 0.00253

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": 166,
          "filtered": 100,
          "index_condition": "a.option_id in (22549,23857,23858,23859,23860,22550,22551,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
220318 21941 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
222565 22549 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
222582 22550 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
222615 22551 0 0.000 A 0.000 A skip 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
222581 22550 2 0.000 A 0.000 A 0.00 0.00 22549 0.00 Same as Mig
215376 21941 3 0.000 A 0.000 A E26 0.00 0.00 0 0.00 E26
222524 22549 3 33.000 A 0.000 A 150 0.00 0.00 0 0.00 150-Black
222569 22550 3 6.000 A 0.000 A 150 0.00 0.00 0 0.00 150-Black
222583 22551 3 0.000 A 0.000 A 0.00 0.00 22549 0.00 Same as Mig
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
215377 21941 5 14.000 A 0.000 A GU24 0.00 0.00 0 3.50 GU24
222525 22549 5 33.000 A 0.000 A 250 0.00 0.00 0 0.00 250-White
222570 22550 5 6.000 A 0.000 A 250 0.00 0.00 0 0.00 250-White
222584 22551 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
222526 22549 10 33.000 A 0.000 A 350 0.00 0.00 0 0.00 350-Vintage Green
222571 22550 10 6.000 A 0.000 A 350 0.00 0.00 0 0.00 350-Vintage Green
222585 22551 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
222527 22549 15 33.000 A 0.000 A 355 0.00 0.00 0 0.00 355-Jadite
222572 22550 15 6.000 A 0.000 A 355 0.00 0.00 0 0.00 355-Jadite
222586 22551 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
222530 22549 20 33.000 A 0.000 A 650 0.00 0.00 0 0.00 650-Bronze
222573 22550 20 11.000 A 0.000 A 455 0.00 0.00 0 0.00 455-Cherry Red
222587 22551 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
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
222528 22549 25 50.000 A 0.000 A 455 0.00 0.00 0 0.00 455-Cherry Red
222574 22550 25 11.000 A 0.000 A 550 0.00 0.00 0 0.00 550-Yellow
222588 22551 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
222529 22549 30 50.000 A 0.000 A 550 0.00 0.00 0 0.00 550-Yellow
222575 22550 30 6.000 A 0.000 A 650 0.00 0.00 0 0.00 650-Bronze
222589 22551 30 0.000 A 0.000 A 605 0.00 0.00 0 0.00 605-Textured Rust
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
237150 22551 32 6.000 A 0.000 A 106 0.00 0.00 0 0.00 106-Matte Black
237151 22551 33 6.000 A 0.000 A 206 0.00 0.00 0 0.00 206-Matte White
222531 22549 35 50.000 A 0.000 A 750 0.00 0.00 0 0.00 750-Cobalt Blue
222576 22550 35 11.000 A 0.000 A 750 0.00 0.00 0 0.00 750-Cobalt Blue
222590 22551 35 6.000 A 0.000 A 307 0.00 0.00 0 0.00 307-Emerald Green
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
242648 22551 38 6.000 A 0.000 A 320 0.00 0.00 0 0.00 320-Fern Green
222532 22549 40 50.000 A 0.000 A 765 0.00 0.00 0 0.00 765-Delphite Blue
222577 22550 40 11.000 A 0.000 A 765 0.00 0.00 0 0.00 765-Delphite Blue
222591 22551 40 6.000 A 0.000 A 370 0.00 0.00 0 0.00 370-Mint
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
222533 22549 45 50.000 A 0.000 A 850 0.00 0.00 0 0.00 850-Graphite
222578 22550 45 11.000 A 0.000 A 850 0.00 0.00 0 0.00 850-Graphite
222592 22551 45 6.000 A 0.000 A 380 0.00 0.00 0 0.00 380-Chartreuse
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
222534 22549 50 50.000 A 0.000 A 950 0.00 0.00 0 0.00 950-Metallic Chrome
222579 22550 50 11.000 A 0.000 A 950 0.00 0.00 0 0.00 950-Metallic Chrome
222593 22551 50 6.000 A 0.000 A 390 0.00 0.00 0 0.00 390-Teal
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
222535 22549 55 0.000 A 0.000 A 100 0.00 0.00 0 0.00 100-Black
222580 22550 55 11.000 A 0.000 A 975 0.00 0.00 0 0.00 975-Galvanized
222594 22551 55 6.000 A 0.000 A 400 0.00 0.00 0 0.00 400-Barn Red
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
222536 22549 60 0.000 A 0.000 A 105 0.00 0.00 0 0.00 105-Textured Black
222595 22551 60 6.000 A 0.000 A 420 0.00 0.00 0 0.00 420-Orange
242649 22551 63 6.000 A 0.000 A 430 0.00 0.00 0 0.00 430-Soft Clay
222537 22549 65 0.000 A 0.000 A 200 0.00 0.00 0 0.00 200-White
222596 22551 65 6.000 A 0.000 A 470 0.00 0.00 0 0.00 470-Watermelon
222538 22549 70 0.000 A 0.000 A 300 0.00 0.00 0 0.00 300-Dark Green
222597 22551 70 6.000 A 0.000 A 480 0.00 0.00 0 0.00 480-Blush Pink
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
222539 22549 75 0.000 A 0.000 A 975 0.00 0.00 0 0.00 975-Galvanized
222598 22551 75 6.000 A 0.000 A 490 0.00 0.00 0 0.00 490-Magenta
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
222540 22549 80 0.000 A 0.000 A 605 0.00 0.00 0 0.00 605-Textured Rust
222599 22551 80 6.000 A 0.000 A 495 0.00 0.00 0 0.00 495-Sherbet Orange
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
237148 22549 82 18.000 A 0.000 A 106 0.00 0.00 0 0.00 106-Matte Black
237149 22549 83 18.000 A 0.000 A 206 0.00 0.00 0 0.00 206-Matte White
222541 22549 85 18.000 A 0.000 A 307 0.00 0.00 0 0.00 307-Emerald Green
222600 22551 85 6.000 A 0.000 A 500 0.00 0.00 0 0.00 500-Buttery Yellow
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
242643 22549 88 18.000 A 0.000 A 320 0.00 0.00 0 0.00 320-Fern Green
222542 22549 90 18.000 A 0.000 A 370 0.00 0.00 0 0.00 370-Mint
222601 22551 90 6.000 A 0.000 A 570 0.00 0.00 0 0.00 570-Sunflower
222543 22549 95 18.000 A 0.000 A 380 0.00 0.00 0 0.00 380-Chartreuse
222602 22551 95 6.000 A 0.000 A 600 0.00 0.00 0 0.00 600-Bronze
222544 22549 100 18.000 A 0.000 A 390 0.00 0.00 0 0.00 390-Teal
222603 22551 100 6.000 A 0.000 A 601 0.00 0.00 0 0.00 601-Chocolate
222545 22549 105 18.000 A 0.000 A 400 0.00 0.00 0 0.00 400-Barn Red
242650 22551 105 6.000 A 0.000 A 607 0.00 0.00 0 0.00 607-Taupe
222546 22549 110 18.000 A 0.000 A 420 0.00 0.00 0 0.00 420-Orange
222604 22551 110 6.000 A 0.000 A 615 0.00 0.00 0 0.00 615-Oil-Rubbed Bronze
242644 22549 113 18.000 A 0.000 A 430 0.00 0.00 0 0.00 430-Soft Clay
242651 22551 113 6.000 A 0.000 A 630 0.00 0.00 0 0.00 630-Beige
222547 22549 115 18.000 A 0.000 A 470 0.00 0.00 0 0.00 470-Watermelon
222605 22551 115 6.000 A 0.000 A 700 0.00 0.00 0 0.00 700-Royal Blue
222548 22549 120 18.000 A 0.000 A 480 0.00 0.00 0 0.00 480-Blush Pink
222606 22551 120 6.000 A 0.000 A 705 0.00 0.00 0 0.00 705-Navy
222549 22549 125 18.000 A 0.000 A 490 0.00 0.00 0 0.00 490-Magenta
222607 22551 125 6.000 A 0.000 A 790 0.00 0.00 0 0.00 790-Lavender
222550 22549 130 18.000 A 0.000 A 495 0.00 0.00 0 0.00 495-Sherbet Orange
222608 22551 130 6.000 A 0.000 A 800 0.00 0.00 0 0.00 800-Industrial Grey
222551 22549 135 18.000 A 0.000 A 500 0.00 0.00 0 0.00 500-Buttery Yellow
222609 22551 135 6.000 A 0.000 A 805 0.00 0.00 0 0.00 805-Charcoal Granite
222552 22549 140 18.000 A 0.000 A 570 0.00 0.00 0 0.00 570-Sunflower
242652 22551 140 6.000 A 0.000 A 815 0.00 0.00 0 0.00 815-Light Grey
222553 22549 145 18.000 A 0.000 A 600 0.00 0.00 0 0.00 600-Bronze
222554 22549 150 18.000 A 0.000 A 601 0.00 0.00 0 0.00 601-Chocolate
242645 22549 153 18.000 A 0.000 A 607 0.00 0.00 0 0.00 607-Taupe
222555 22549 155 18.000 A 0.000 A 615 0.00 0.00 0 0.00 615-Oil-Rubbed Bronze
242646 22549 158 18.000 A 0.000 A 630 0.00 0.00 0 0.00 630-Beige
222556 22549 160 18.000 A 0.000 A 700 0.00 0.00 0 0.00 700-Royal Blue
222557 22549 165 18.000 A 0.000 A 705 0.00 0.00 0 0.00 705-Navy
222558 22549 170 18.000 A 0.000 A 800 0.00 0.00 0 0.00 800-Industrial Grey
222559 22549 175 18.000 A 0.000 A 805 0.00 0.00 0 0.00 805-Charcoal Granite
242647 22549 178 18.000 A 0.000 A 815 0.00 0.00 0 0.00 815-Light Grey
222560 22549 180 18.000 A 0.000 A 375 0.00 0.00 0 0.00 375-Dark Green
222561 22549 185 18.000 A 0.000 A 376 0.00 0.00 0 0.00 376-Jadite
222562 22549 190 18.000 A 0.000 A 475 0.00 0.00 0 0.00 475-Red
222563 22549 195 18.000 A 0.000 A 476 0.00 0.00 0 0.00 476-Burnt Orange
222564 22549 200 18.000 A 0.000 A 575 0.00 0.00 0 0.00 575-Yellow
222566 22549 205 18.000 A 0.000 A 675 0.00 0.00 0 0.00 675-Brown
222567 22549 210 18.000 A 0.000 A 775 0.00 0.00 0 0.00 775-Blue
238341 22549 213 18.000 A 0.000 A 776 0.00 0.00 0 0.00 776-Delphite Blue
222568 22549 215 18.000 A 0.000 A 875 0.00 0.00 0 0.00 875-Grey