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 (
    22788, 22791, 23167, 23168, 22794, 22795, 
    22796, 22797, 22798, 23171, 23172, 
    23173, 22675, 22644
  ) 
  AND a.status = 'A' 
ORDER BY 
  a.position, 
  a.variant_id

Query time 0.00210

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": 158,
          "filtered": 100,
          "index_condition": "a.option_id in (22788,22791,23167,23168,22794,22795,22796,22797,22798,23171,23172,23173,22675,22644) 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
223755 22644 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
226326 22788 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
226373 22791 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
226434 22794 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
226439 22795 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
226444 22796 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
226449 22797 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
226485 22798 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
231662 23167 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
231692 23168 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
231703 23171 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
231706 23172 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
231709 23173 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
226338 22791 3 0.000 A 0.000 A 100 0.00 0.00 0 0.00 100-Black
226438 22794 3 0.000 A 0.000 A NA 0.00 0.00 0 0.00 None
226443 22795 3 0.000 A 0.000 A NA 0.00 0.00 0 0.00 None
226448 22796 3 0.000 A 0.000 A NA 0.00 0.00 0 0.00 None
226453 22797 3 0.000 A 0.000 A NA 0.00 0.00 0 0.00 None
231633 23167 3 11.000 A 0.000 A G26 0.00 0.00 0 0.00 G26 Gooseneck Arm
231663 23168 3 11.000 A 0.000 A G26 0.00 0.00 0 0.00 G26 Gooseneck Arm
231701 23171 3 0.000 A 0.000 A NA 0.00 0.00 0 0.00 None
231704 23172 3 0.000 A 0.000 A NA 0.00 0.00 0 0.00 None
231707 23173 3 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
224225 22675 5 0.000 A 0.000 A LED11 0.00 0.00 0 0.00 850 Lumens
226327 22788 5 0.000 A 0.000 A SCH10 0.00 0.00 0 0.00 Small Opaque Glass
226339 22791 5 0.000 A 0.000 A 105 0.00 0.00 0 0.00 105-Textured Black
226435 22794 5 30.000 A 0.000 A PB1 0.00 0.00 0 0.00 PB1 - Single Painted Band
226440 22795 5 30.000 A 0.000 A PB1 0.00 0.00 0 0.00 PB1 - Single Painted Band
226445 22796 5 30.000 A 0.000 A PB1 0.00 0.00 0 0.00 PB1 - Single Painted Band
226450 22797 5 30.000 A 0.000 A PB1 0.00 0.00 0 0.00 PB1 - Single Painted Band
226455 22798 5 0.000 A 0.000 A 100 0.00 0.00 0 0.00 100-Black
231634 23167 5 12.000 A 0.000 A G11 0.00 0.00 0 0.00 G11 Gooseneck Arm
231664 23168 5 12.000 A 0.000 A G11 0.00 0.00 0 0.00 G11 Gooseneck Arm
231702 23171 5 43.000 A 0.000 A LDBPC 0.00 0.00 0 0.00 Decorative BP Cover
231705 23172 5 121.000 A 0.000 A LDCHX 0.00 0.00 0 0.00 Brass BP & Hex Cover
231708 23173 5 110.000 A 0.000 A LDCHX 0.00 0.00 0 0.00 Copper BP & Hex Cover
233543 23171 8 65.000 A 0.000 A LDCHX 0.00 0.00 0 0.00 Decorative BP & Hex Cover
223757 22644 10 0.000 A 0.000 A 3000K 0.00 0.00 0 0.00 3000K - Neutral White
224226 22675 10 0.000 A 0.000 A LED16 0.00 0.00 0 0.00 1250 Lumens
226328 22788 10 36.000 A 0.000 A SCH14 0.00 0.00 0 0.00 Large Opaque Glass
226340 22791 10 0.000 A 0.000 A 200 0.00 0.00 0 0.00 200-White
226436 22794 10 30.000 A 0.000 A PB2 0.00 0.00 0 0.00 PB2 - Double Painted Band
226441 22795 10 30.000 A 0.000 A PB2 0.00 0.00 0 0.00 PB2 - Double Painted Band
226446 22796 10 30.000 A 0.000 A PB2 0.00 0.00 0 0.00 PB2 - Double Painted Band
226451 22797 10 30.000 A 0.000 A PB2 0.00 0.00 0 0.00 PB2 - Double Painted Band
231635 23167 10 15.000 A 0.000 A G15 0.00 0.00 0 0.00 G15 Gooseneck Arm
231665 23168 10 15.000 A 0.000 A G15 0.00 0.00 0 0.00 G15 Gooseneck Arm
223758 22644 15 0.000 A 0.000 A 3500K 0.00 0.00 0 0.00 3500K - Bright White
226329 22788 15 0.000 A 0.000 A SCHCL10 0.00 0.00 0 0.00 Small Clear Glass
226341 22791 15 0.000 A 0.000 A 300 0.00 0.00 0 0.00 300-Dark Green
226437 22794 15 30.000 A 0.000 A PB3 0.00 0.00 0 0.00 PB3 - Triple Painted Band
226442 22795 15 30.000 A 0.000 A PB3 0.00 0.00 0 0.00 PB3 - Triple Painted Band
226447 22796 15 30.000 A 0.000 A PB3 0.00 0.00 0 0.00 PB3 - Triple Painted Band
226452 22797 15 30.000 A 0.000 A PB3 0.00 0.00 0 0.00 PB3 - Triple Painted Band
226457 22798 15 0.000 A 0.000 A 200 0.00 0.00 0 0.00 200-White
231636 23167 15 17.000 A 0.000 A G22 0.00 0.00 0 0.00 G22 Gooseneck Arm
231666 23168 15 17.000 A 0.000 A G22 0.00 0.00 0 0.00 G22 Gooseneck Arm
231656 23167 18 14.000 A 0.000 A G8 0.00 0.00 0 0.00 G8 Gooseneck Arm
231686 23168 18 14.000 A 0.000 A G8 0.00 0.00 0 0.00 G8 Gooseneck Arm
223759 22644 20 0.000 A 0.000 A 4000K 0.00 0.00 0 0.00 4000K - Cool White
226330 22788 20 36.000 A 0.000 A SCHCL14 0.00 0.00 0 0.00 Large Clear Glass
226342 22791 20 0.000 A 0.000 A 975 0.00 0.00 0 0.00 975-Galvanized
231637 23167 20 26.000 A 0.000 A G24 0.00 0.00 0 0.00 G24 Gooseneck Arm
231667 23168 20 26.000 A 0.000 A G24 0.00 0.00 0 0.00 G24 Gooseneck Arm
226343 22791 25 0.000 A 0.000 A 605 0.00 0.00 0 0.00 605-Textured Rust
231638 23167 25 26.000 A 0.000 A G6 0.00 0.00 0 0.00 G6 Gooseneck Arm
231668 23168 25 26.000 A 0.000 A G6 0.00 0.00 0 0.00 G6 Gooseneck Arm
237048 22791 27 18.000 A 0.000 A 106 0.00 0.00 0 0.00 106-Matte Black
237049 22791 28 18.000 A 0.000 A 206 0.00 0.00 0 0.00 206-Matte White
226344 22791 30 18.000 A 0.000 A 307 0.00 0.00 0 0.00 307-Emerald Green
231639 23167 30 0.000 A 0.000 A G3 0.00 0.00 0 0.00 G3 Straight Arm
231669 23168 30 0.000 A 0.000 A G3 0.00 0.00 0 0.00 G3 Straight Arm
241325 22791 33 18.000 A 0.000 A 320 0.00 0.00 0 0.00 320-Fern Green
226345 22791 35 18.000 A 0.000 A 370 0.00 0.00 0 0.00 370-Mint
231640 23167 35 0.000 A 0.000 A G4 0.00 0.00 0 0.00 G4 Straight Arm
231670 23168 35 0.000 A 0.000 A G4 0.00 0.00 0 0.00 G4 Straight Arm
226346 22791 40 18.000 A 0.000 A 380 0.00 0.00 0 0.00 380-Chartreuse
226462 22798 40 11.000 A 0.000 A 307 0.00 0.00 0 0.00 307-Emerald Green
231641 23167 40 4.000 A 0.000 A G1 0.00 0.00 0 0.00 G1 Straight Arm
231671 23168 40 4.000 A 0.000 A G1 0.00 0.00 0 0.00 G1 Straight Arm
226347 22791 45 18.000 A 0.000 A 390 0.00 0.00 0 0.00 390-Teal
231642 23167 45 4.000 A 0.000 A G14 0.00 0.00 0 0.00 G14 Straight Arm
231672 23168 45 4.000 A 0.000 A G14 0.00 0.00 0 0.00 G14 Straight Arm
226348 22791 50 18.000 A 0.000 A 400 0.00 0.00 0 0.00 400-Barn Red
226481 22798 50 11.000 A 0.000 A 311 0.00 0.00 0 0.00 311-Jadite
231643 23167 50 2.000 A 0.000 A G16 0.00 0.00 0 0.00 G16 Straight Arm
231673 23168 50 2.000 A 0.000 A G16 0.00 0.00 0 0.00 G16 Straight Arm
244281 22798 53 11.000 A 0.000 A 320 0.00 0.00 0 0.00 320-Fern Green
226349 22791 55 18.000 A 0.000 A 420 0.00 0.00 0 0.00 420-Orange
226465 22798 55 11.000 A 0.000 A 390 0.00 0.00 0 0.00 390-Teal
231644 23167 55 2.000 A 0.000 A G17 0.00 0.00 0 0.00 G17 Straight Arm
231674 23168 55 2.000 A 0.000 A G17 0.00 0.00 0 0.00 G17 Straight Arm
241326 22791 58 18.000 A 0.000 A 430 0.00 0.00 0 0.00 430-Soft Clay
226350 22791 60 18.000 A 0.000 A 470 0.00 0.00 0 0.00 470-Watermelon
226466 22798 60 11.000 A 0.000 A 400 0.00 0.00 0 0.00 400-Barn Red
231645 23167 60 26.000 A 0.000 A G35 0.00 0.00 0 0.00 G35 Gooseneck Arm
231675 23168 60 26.000 A 0.000 A G35 0.00 0.00 0 0.00 G35 Gooseneck Arm
226351 22791 65 18.000 A 0.000 A 480 0.00 0.00 0 0.00 480-Blush Pink
231646 23167 65 30.000 A 0.000 A G34 0.00 0.00 0 0.00 G34 Gooseneck Arm
231676 23168 65 30.000 A 0.000 A G34 0.00 0.00 0 0.00 G34 Gooseneck Arm
244282 22798 65 11.000 A 0.000 A 430 0.00 0.00 0 0.00 430-Soft Clay
226352 22791 70 18.000 A 0.000 A 490 0.00 0.00 0 0.00 490-Magenta
231647 23167 70 16.000 A 0.000 A G5 0.00 0.00 0 0.00 G5 Gooseneck Arm
231677 23168 70 16.000 A 0.000 A G5 0.00 0.00 0 0.00 G5 Gooseneck Arm
239948 22798 70 11.000 A 0.000 A 480 0.00 0.00 0 0.00 480-Blush Pink
226353 22791 75 18.000 A 0.000 A 495 0.00 0.00 0 0.00 495-Sherbet Orange
231648 23167 75 21.000 A 0.000 A G25 0.00 0.00 0 0.00 G25 Gooseneck Arm
231678 23168 75 21.000 A 0.000 A G25 0.00 0.00 0 0.00 G25 Gooseneck Arm
226354 22791 80 18.000 A 0.000 A 500 0.00 0.00 0 0.00 500-Buttery Yellow
226470 22798 80 11.000 A 0.000 A 490 0.00 0.00 0 0.00 490-Magenta
231649 23167 80 28.000 A 0.000 A G10 0.00 0.00 0 0.00 G10 Gooseneck Arm
231679 23168 80 28.000 A 0.000 A G10 0.00 0.00 0 0.00 G10 Gooseneck Arm
226355 22791 85 18.000 A 0.000 A 570 0.00 0.00 0 0.00 570-Sunflower
226356 22791 90 18.000 A 0.000 A 600 0.00 0.00 0 0.00 600-Bronze
226472 22798 90 11.000 A 0.000 A 500 0.00 0.00 0 0.00 500-Buttery Yellow
231651 23167 90 190.000 A 0.000 A G65 0.00 0.00 0 0.00 G65 Gooseneck Arm
231681 23168 90 190.000 A 0.000 A G65 0.00 0.00 0 0.00 G65 Gooseneck Arm
226357 22791 95 18.000 A 0.000 A 601 0.00 0.00 0 0.00 601-Chocolate
231652 23167 95 158.000 A 0.000 A G64 0.00 0.00 0 0.00 G64 Gooseneck Arm
231682 23168 95 158.000 A 0.000 A G64 0.00 0.00 0 0.00 G64 Gooseneck Arm
241327 22791 98 18.000 A 0.000 A 607 0.00 0.00 0 0.00 607-Taupe
226358 22791 100 18.000 A 0.000 A 615 0.00 0.00 0 0.00 615-Textured Bronze
226474 22798 100 11.000 A 0.000 A 600 0.00 0.00 0 0.00 600-Bronze
231653 23167 100 8.000 A 0.000 A G12 0.00 0.00 0 0.00 G12 Gooseneck Arm
231683 23168 100 8.000 A 0.000 A G12 0.00 0.00 0 0.00 G12 Gooseneck Arm
241328 22791 103 18.000 A 0.000 A 630 0.00 0.00 0 0.00 630-Beige
226359 22791 105 18.000 A 0.000 A 700 0.00 0.00 0 0.00 700-Royal Blue
231654 23167 105 10.000 A 0.000 A G13 0.00 0.00 0 0.00 G13 Gooseneck Arm
231684 23168 105 10.000 A 0.000 A G13 0.00 0.00 0 0.00 G13 Gooseneck Arm
226360 22791 110 18.000 A 0.000 A 705 0.00 0.00 0 0.00 705-Navy
231655 23167 110 23.000 A 0.000 A G32 0.00 0.00 0 0.00 G32 Gooseneck Arm
231685 23168 110 23.000 A 0.000 A G32 0.00 0.00 0 0.00 G32 Gooseneck Arm
226361 22791 115 18.000 A 0.000 A 790 0.00 0.00 0 0.00 790-Lavender
226477 22798 115 11.000 A 0.000 A 700 0.00 0.00 0 0.00 700-Royal Blue
226362 22791 120 18.000 A 0.000 A 800 0.00 0.00 0 0.00 800-Industrial Grey
226478 22798 120 11.000 A 0.000 A 705 0.00 0.00 0 0.00 705-Navy
231657 23167 120 35.000 A 0.000 A G2 0.00 0.00 0 0.00 G2 Gooseneck Arm
231687 23168 120 35.000 A 0.000 A G2 0.00 0.00 0 0.00 G2 Gooseneck Arm
226483 22798 123 11.000 A 0.000 A 715 0.00 0.00 0 0.00 715-Delphite
226363 22791 125 18.000 A 0.000 A 805 0.00 0.00 0 0.00 805-Charcoal Granite
231658 23167 125 39.000 A 0.000 A G36 0.00 0.00 0 0.00 G36 Gooseneck Arm
231688 23168 125 39.000 A 0.000 A G36 0.00 0.00 0 0.00 G36 Gooseneck Arm
241329 22791 128 18.000 A 0.000 A 815 0.00 0.00 0 0.00 815-Light Grey
231659 23167 130 25.000 A 0.000 A G7 0.00 0.00 0 0.00 G7 Gooseneck Arm
231689 23168 130 25.000 A 0.000 A G7 0.00 0.00 0 0.00 G7 Gooseneck Arm
242533 22791 130 18.000 A 0.000 A 311 0.00 0.00 0 0.00 311-Jadite
242534 22791 132 18.000 A 0.000 A 710 0.00 0.00 0 0.00 710-Cobalt Blue
242535 22791 134 18.000 A 0.000 A 715 0.00 0.00 0 0.00 715-Delphite Blue
231660 23167 135 32.000 A 0.000 A G9 0.00 0.00 0 0.00 G9 Gooseneck Arm
231690 23168 135 32.000 A 0.000 A G9 0.00 0.00 0 0.00 G9 Gooseneck Arm
242536 22791 136 18.000 A 0.000 A 810 0.00 0.00 0 0.00 810-Graphite
226368 22791 150 238.000 A 0.000 A 995 0.00 0.00 0 0.00 995-Raw Copper
226369 22791 155 267.000 A 0.000 A 996 0.00 0.00 0 0.00 996-Weathered Copper
226370 22791 160 267.000 A 0.000 A 999 0.00 0.00 0 0.00 999-Oil-Rubbed Copper
226371 22791 165 267.000 A 0.000 A 997 0.00 0.00 0 0.00 997-Raw Brass
226372 22791 170 295.000 A 0.000 A 998 0.00 0.00 0 0.00 998-Weathered Brass