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 (
    22751, 22752, 22753, 23534, 22754, 22755, 
    22643, 22644, 22645
  ) 
  AND a.status = 'A' 
ORDER BY 
  a.position, 
  a.variant_id

Query time 0.00334

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": 185,
          "filtered": 100,
          "index_condition": "a.option_id in (22751,22752,22753,23534,22754,22755,22643,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
223749 22643 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
225725 22751 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
225758 22752 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
225790 22753 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
225804 22754 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
225834 22755 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
236788 23534 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
225791 22753 2 0.000 A 0.000 A 200 0.00 0.00 0 0.00 200-White
236760 23534 2 0.000 A 0.000 A 975 0.00 0.00 0 0.00 975-Galvanized
225726 22752 3 0.000 A 0.000 A 100 0.00 0.00 0 0.00 100-Black
225759 22753 3 18.000 A 0.000 A 100 0.00 0.00 0 0.00 100-Black
225792 22754 3 0.000 A 0.000 A ST506 0.00 0.00 0 0.00 6" Stem - ½" Diameter
225805 22755 3 0.000 A 0.000 A 0.00 0.00 22752 0.00 Same as Exterior
236757 23534 3 18.000 A 0.000 A 100 0.00 0.00 0 0.00 100-Black
236789 23534 4 18.000 A 0.000 A 200 0.00 0.00 0 0.00 200-White
223750 22643 5 0.000 A 0.000 A LED11 0.00 0.00 0 0.00 850 Lumens
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
225722 22751 5 0.000 A 0.000 A DBL28 0.00 0.00 0 0.00 28" Shade
225727 22752 5 0.000 A 0.000 A 105 0.00 0.00 0 0.00 105-Textured Black
225760 22753 5 18.000 A 0.000 A 105 0.00 0.00 0 0.00 105-Textured Black
225806 22755 5 0.000 A 0.000 A 100 0.00 0.00 0 0.00 100-Black
236758 23534 5 18.000 A 0.000 A 105 0.00 0.00 0 0.00 105-Textured Black
223751 22643 10 0.000 A 0.000 A LED16 0.00 0.00 0 0.00 1250 Lumens
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
225723 22751 10 1800.000 A 0.000 A DBL36 616.54 0.00 0 0.00 36" Shade
225728 22752 10 0.000 A 0.000 A 200 0.00 0.00 0 0.00 200-White
225794 22754 10 3.000 A 0.000 A ST512 0.00 0.00 0 0.00 12" Stem - ½" Diameter
225807 22755 10 0.000 A 0.000 A 105 0.00 0.00 0 0.00 105-Textured Black
223752 22643 15 5.000 A 0.000 A LED27 0.00 0.00 0 1.25 2000 Lumens
223758 22644 15 0.000 A 0.000 A 3500K 0.00 0.00 0 0.00 3500K - Bright White
225729 22752 15 0.000 A 0.000 A 300 0.00 0.00 0 0.00 300-Dark Green
225761 22753 15 18.000 A 0.000 A 300 0.00 0.00 0 0.00 300-Dark Green
225808 22755 15 0.000 A 0.000 A 200 0.00 0.00 0 0.00 200-White
236759 23534 15 18.000 A 0.000 A 300 0.00 0.00 0 0.00 300-Dark Green
223753 22643 20 15.000 A 0.000 A LED38 0.00 0.00 0 3.75 3000 Lumens
223759 22644 20 0.000 A 0.000 A 4000K 0.00 0.00 0 0.00 4000K - Cool White
225730 22752 20 0.000 A 0.000 A 975 0.00 0.00 0 0.00 975-Galvanized
225762 22753 20 18.000 A 0.000 A 975 0.00 0.00 0 0.00 975-Galvanized
225796 22754 20 5.000 A 0.000 A ST518 0.00 0.00 0 0.00 18" Stem - ½" Diameter
225809 22755 20 0.000 A 0.000 A 300 0.00 0.00 0 0.00 300-Dark Green
223754 22643 25 23.000 A 0.000 A LED43 0.00 0.00 0 5.75 4000 Lumens
225731 22752 25 0.000 A 0.000 A 605 0.00 0.00 0 0.00 605-Textured Rust
225763 22753 25 18.000 A 0.000 A 605 0.00 0.00 0 0.00 605-Textured Rust
225810 22755 25 0.000 A 0.000 A 975 0.00 0.00 0 0.00 975-Galvanized
236761 23534 25 18.000 A 0.000 A 605 0.00 0.00 0 0.00 605-Textured Rust
237104 22752 27 18.000 A 0.000 A 106 0.00 0.00 0 0.00 106-Matte Black
237106 22753 27 18.000 A 0.000 A 106 0.00 0.00 0 0.00 106-Matte Black
237108 23534 27 18.000 A 0.000 A 106 0.00 0.00 0 0.00 106-Matte Black
237105 22752 28 18.000 A 0.000 A 206 0.00 0.00 0 0.00 206-Matte White
237107 22753 28 18.000 A 0.000 A 206 0.00 0.00 0 0.00 206-Matte White
237109 23534 28 18.000 A 0.000 A 206 0.00 0.00 0 0.00 206-Matte White
225732 22752 30 18.000 A 0.000 A 307 0.00 0.00 0 0.00 307-Emerald Green
225764 22753 30 18.000 A 0.000 A 307 0.00 0.00 0 0.00 307-Emerald Green
225798 22754 30 7.000 A 0.000 A ST524 0.00 0.00 0 0.00 24" Stem - ½" Diameter
225811 22755 30 0.000 A 0.000 A 605 0.00 0.00 0 0.00 605-Textured Rust
236762 23534 30 18.000 A 0.000 A 307 0.00 0.00 0 0.00 307-Emerald Green
242932 22753 31 18.000 A 0.000 A 311 0.00 0.00 0 0.00 311-Jadite
242936 23534 31 18.000 A 0.000 A 311 0.00 0.00 0 0.00 311-Jadite
237160 22755 32 11.000 A 0.000 A 106 0.00 0.00 0 0.00 106-Matte Black
242928 22752 32 18.000 A 0.000 A 311 0.00 0.00 0 0.00 311-Jadite
237161 22755 33 11.000 A 0.000 A 206 0.00 0.00 0 0.00 206-Matte White
241934 22752 33 18.000 A 0.000 A 320 0.00 0.00 0 0.00 320-Fern Green
241939 22753 33 18.000 A 0.000 A 320 0.00 0.00 0 0.00 320-Fern Green
241944 23534 33 18.000 A 0.000 A 320 0.00 0.00 0 0.00 320-Fern Green
225733 22752 35 18.000 A 0.000 A 370 0.00 0.00 0 0.00 370-Mint
225765 22753 35 18.000 A 0.000 A 370 0.00 0.00 0 0.00 370-Mint
225812 22755 35 11.000 A 0.000 A 307 0.00 0.00 0 0.00 307-Emerald Green
236763 23534 35 18.000 A 0.000 A 370 0.00 0.00 0 0.00 370-Mint
242940 22755 36 11.000 A 0.000 A 311 0.00 0.00 0 0.00 311-Jadite
241949 22755 38 11.000 A 0.000 A 320 0.00 0.00 0 0.00 320-Fern Green
225734 22752 40 18.000 A 0.000 A 380 0.00 0.00 0 0.00 380-Chartreuse
225766 22753 40 18.000 A 0.000 A 380 0.00 0.00 0 0.00 380-Chartreuse
225800 22754 40 12.000 A 0.000 A ST536 0.00 0.00 0 0.00 36" Stem - ½" Diameter
225813 22755 40 11.000 A 0.000 A 370 0.00 0.00 0 0.00 370-Mint
236764 23534 40 18.000 A 0.000 A 380 0.00 0.00 0 0.00 380-Chartreuse
225735 22752 45 18.000 A 0.000 A 390 0.00 0.00 0 0.00 390-Teal
225767 22753 45 18.000 A 0.000 A 390 0.00 0.00 0 0.00 390-Teal
225814 22755 45 11.000 A 0.000 A 380 0.00 0.00 0 0.00 380-Chartreuse
236765 23534 45 18.000 A 0.000 A 390 0.00 0.00 0 0.00 390-Teal
225736 22752 50 18.000 A 0.000 A 400 0.00 0.00 0 0.00 400-Barn Red
225768 22753 50 18.000 A 0.000 A 400 0.00 0.00 0 0.00 400-Barn Red
225802 22754 50 16.000 A 0.000 A ST548 0.00 0.00 0 0.00 48" Stem - ½" Diameter
225815 22755 50 11.000 A 0.000 A 390 0.00 0.00 0 0.00 390-Teal
236766 23534 50 18.000 A 0.000 A 400 0.00 0.00 0 0.00 400-Barn Red
225737 22752 55 18.000 A 0.000 A 420 0.00 0.00 0 0.00 420-Orange
225769 22753 55 18.000 A 0.000 A 420 0.00 0.00 0 0.00 420-Orange
225816 22755 55 11.000 A 0.000 A 400 0.00 0.00 0 0.00 400-Barn Red
236767 23534 55 18.000 A 0.000 A 420 0.00 0.00 0 0.00 420-Orange
241935 22752 58 18.000 A 0.000 A 430 0.00 0.00 0 0.00 430-Soft Clay
241940 22753 58 18.000 A 0.000 A 430 0.00 0.00 0 0.00 430-Soft Clay
241945 23534 58 18.000 A 0.000 A 430 0.00 0.00 0 0.00 430-Soft Clay
225738 22752 60 18.000 A 0.000 A 470 0.00 0.00 0 0.00 470-Watermelon
225770 22753 60 18.000 A 0.000 A 470 0.00 0.00 0 0.00 470-Watermelon
225817 22755 60 11.000 A 0.000 A 420 0.00 0.00 0 0.00 420-Orange
236768 23534 60 18.000 A 0.000 A 470 0.00 0.00 0 0.00 470-Watermelon
241950 22755 63 11.000 A 0.000 A 430 0.00 0.00 0 0.00 430-Soft Clay
225739 22752 65 18.000 A 0.000 A 480 0.00 0.00 0 0.00 480-Blush Pink
225771 22753 65 18.000 A 0.000 A 480 0.00 0.00 0 0.00 480-Blush Pink
225818 22755 65 11.000 A 0.000 A 470 0.00 0.00 0 0.00 470-Watermelon
236769 23534 65 18.000 A 0.000 A 480 0.00 0.00 0 0.00 480-Blush Pink
225740 22752 70 18.000 A 0.000 A 490 0.00 0.00 0 0.00 490-Magenta
225772 22753 70 18.000 A 0.000 A 490 0.00 0.00 0 0.00 490-Magenta
225819 22755 70 11.000 A 0.000 A 480 0.00 0.00 0 0.00 480-Blush Pink
236770 23534 70 18.000 A 0.000 A 490 0.00 0.00 0 0.00 490-Magenta
225741 22752 75 18.000 A 0.000 A 495 0.00 0.00 0 0.00 495-Sherbet Orange
225773 22753 75 18.000 A 0.000 A 495 0.00 0.00 0 0.00 495-Sherbet Orange
225820 22755 75 11.000 A 0.000 A 490 0.00 0.00 0 0.00 490-Magenta
236771 23534 75 18.000 A 0.000 A 495 0.00 0.00 0 0.00 495-Sherbet Orange
225742 22752 80 18.000 A 0.000 A 500 0.00 0.00 0 0.00 500-Buttery Yellow
225774 22753 80 18.000 A 0.000 A 500 0.00 0.00 0 0.00 500-Buttery Yellow
225821 22755 80 11.000 A 0.000 A 495 0.00 0.00 0 0.00 495-Sherbet Orange
236772 23534 80 18.000 A 0.000 A 500 0.00 0.00 0 0.00 500-Buttery Yellow
225743 22752 85 18.000 A 0.000 A 570 0.00 0.00 0 0.00 570-Sunflower
225775 22753 85 18.000 A 0.000 A 570 0.00 0.00 0 0.00 570-Sunflower
225822 22755 85 11.000 A 0.000 A 500 0.00 0.00 0 0.00 500-Buttery Yellow
236773 23534 85 18.000 A 0.000 A 570 0.00 0.00 0 0.00 570-Sunflower
225744 22752 90 18.000 A 0.000 A 600 0.00 0.00 0 0.00 600-Bronze
225776 22753 90 18.000 A 0.000 A 600 0.00 0.00 0 0.00 600-Bronze
225823 22755 90 11.000 A 0.000 A 570 0.00 0.00 0 0.00 570-Sunflower
236774 23534 90 18.000 A 0.000 A 600 0.00 0.00 0 0.00 600-Bronze
225745 22752 95 18.000 A 0.000 A 601 0.00 0.00 0 0.00 601-Chocolate
225777 22753 95 18.000 A 0.000 A 601 0.00 0.00 0 0.00 601-Chocolate
225824 22755 95 11.000 A 0.000 A 600 0.00 0.00 0 0.00 600-Bronze
236775 23534 95 18.000 A 0.000 A 601 0.00 0.00 0 0.00 601-Chocolate
241936 22752 98 18.000 A 0.000 A 607 0.00 0.00 0 0.00 607-Taupe
241941 22753 98 18.000 A 0.000 A 607 0.00 0.00 0 0.00 607-Taupe
241946 23534 98 18.000 A 0.000 A 607 0.00 0.00 0 0.00 607-Taupe
225746 22752 100 18.000 A 0.000 A 615 0.00 0.00 0 0.00 615-Oil-Rubbed Bronze
225778 22753 100 18.000 A 0.000 A 615 0.00 0.00 0 0.00 615-Oil-Rubbed Bronze
225825 22755 100 11.000 A 0.000 A 601 0.00 0.00 0 0.00 601-Chocolate
236776 23534 100 18.000 A 0.000 A 615 0.00 0.00 0 0.00 615-Oil-Rubbed Bronze
241937 22752 103 18.000 A 0.000 A 630 0.00 0.00 0 0.00 630-Beige
241942 22753 103 18.000 A 0.000 A 630 0.00 0.00 0 0.00 630-Beige
241947 23534 103 18.000 A 0.000 A 630 0.00 0.00 0 0.00 630-Beige
225747 22752 105 18.000 A 0.000 A 700 0.00 0.00 0 0.00 700-Royal Blue
225779 22753 105 18.000 A 0.000 A 700 0.00 0.00 0 0.00 700-Royal Blue
236777 23534 105 18.000 A 0.000 A 700 0.00 0.00 0 0.00 700-Royal Blue
241951 22755 105 11.000 A 0.000 A 607 0.00 0.00 0 0.00 607-Taupe
225748 22752 110 18.000 A 0.000 A 705 0.00 0.00 0 0.00 705-Navy
225780 22753 110 18.000 A 0.000 A 705 0.00 0.00 0 0.00 705-Navy
225826 22755 110 11.000 A 0.000 A 615 0.00 0.00 0 0.00 615-Oil-Rubbed Bronze
236778 23534 110 18.000 A 0.000 A 705 0.00 0.00 0 0.00 705-Navy
242933 22753 111 18.000 A 0.000 A 710 0.00 0.00 0 0.00 710-Cobalt Blue
242929 22752 112 18.000 A 0.000 A 710 0.00 0.00 0 0.00 710-Cobalt Blue
242937 23534 112 18.000 A 0.000 A 710 0.00 0.00 0 0.00 710-Cobalt Blue
241952 22755 113 11.000 A 0.000 A 630 0.00 0.00 0 0.00 630-Beige
242930 22752 113 18.000 A 0.000 A 715 0.00 0.00 0 0.00 715-Delphite Blue
242934 22753 113 18.000 A 0.000 A 715 0.00 0.00 0 0.00 715-Delphite Blue
242938 23534 113 18.000 A 0.000 A 715 0.00 0.00 0 0.00 715-Delphite Blue
225749 22752 115 18.000 A 0.000 A 790 0.00 0.00 0 0.00 790-Lavender
225781 22753 115 18.000 A 0.000 A 790 0.00 0.00 0 0.00 790-Lavender
225827 22755 115 11.000 A 0.000 A 700 0.00 0.00 0 0.00 700-Royal Blue
236779 23534 115 18.000 A 0.000 A 790 0.00 0.00 0 0.00 790-Lavender
225750 22752 120 18.000 A 0.000 A 800 0.00 0.00 0 0.00 800-Industrial Grey
225782 22753 120 18.000 A 0.000 A 800 0.00 0.00 0 0.00 800-Industrial Grey
225828 22755 120 11.000 A 0.000 A 705 0.00 0.00 0 0.00 705-Navy
236780 23534 120 18.000 A 0.000 A 800 0.00 0.00 0 0.00 800-Industrial Grey
242941 22755 121 11.000 A 0.000 A 710 0.00 0.00 0 0.00 710-Cobalt Blue
242942 22755 122 11.000 A 0.000 A 715 0.00 0.00 0 0.00 715-Delphite Blue
225751 22752 125 18.000 A 0.000 A 805 0.00 0.00 0 0.00 805-Charcoal Granite
225783 22753 125 18.000 A 0.000 A 805 0.00 0.00 0 0.00 805-Charcoal Granite
225829 22755 125 11.000 A 0.000 A 790 0.00 0.00 0 0.00 790-Lavender
236781 23534 125 18.000 A 0.000 A 805 0.00 0.00 0 0.00 805-Charcoal Granite
241938 22752 126 18.000 A 0.000 A 815 0.00 0.00 0 0.00 815-Light Grey
242931 22752 126 18.000 A 0.000 A 810 0.00 0.00 0 0.00 810-Graphite
242935 22753 126 18.000 A 0.000 A 810 0.00 0.00 0 0.00 810-Graphite
242939 23534 126 18.000 A 0.000 A 810 0.00 0.00 0 0.00 810-Graphite
225756 22752 127 55.000 A 0.000 A 930 0.00 0.00 0 0.00 930-Painted Aged Brass
241943 22753 127 18.000 A 0.000 A 815 0.00 0.00 0 0.00 815-Light Grey
241948 23534 127 18.000 A 0.000 A 815 0.00 0.00 0 0.00 815-Light Grey
225788 22753 128 55.000 A 0.000 A 930 0.00 0.00 0 0.00 930-Painted Aged Brass
236786 23534 128 55.000 A 0.000 A 930 0.00 0.00 0 0.00 930-Painted Aged Brass
225757 22752 129 55.000 A 0.000 A 940 0.00 0.00 0 0.00 940-Painted Aged Copper
225789 22753 129 55.000 A 0.000 A 940 0.00 0.00 0 0.00 940-Painted Aged Copper
236787 23534 129 55.000 A 0.000 A 940 0.00 0.00 0 0.00 940-Painted Aged Copper
225830 22755 130 11.000 A 0.000 A 800 0.00 0.00 0 0.00 800-Industrial Grey
225831 22755 135 11.000 A 0.000 A 805 0.00 0.00 0 0.00 805-Charcoal Granite
242943 22755 136 11.000 A 0.000 A 810 0.00 0.00 0 0.00 810-Graphite
241953 22755 138 11.000 A 0.000 A 815 0.00 0.00 0 0.00 815-Light Grey
225832 22755 140 15.000 A 0.000 A 930 0.00 0.00 0 0.00 930-Painted Aged Brass
225833 22755 145 15.000 A 0.000 A 940 0.00 0.00 0 0.00 940-Painted Aged Copper