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 (
    23771, 21970, 21951, 22588, 21954, 23772, 
    22757
  ) 
  AND a.status = 'A' 
ORDER BY 
  a.position, 
  a.variant_id

Query time 0.00165

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": 136,
          "filtered": 100,
          "index_condition": "a.option_id in (23771,21970,21951,22588,21954,23772,22757) 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
218476 21970 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
220144 21951 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
220173 21954 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
222921 22588 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
225874 22757 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
239871 23771 0 0.000 A 0.000 A WHA42 373.24 0.00 0 0.00 42" Shade
239874 23772 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
215513 21951 3 0.000 A 0.000 A CN36 0.00 0.00 0 0.00 3 Feet of Chain
215556 21954 3 0.000 A 0.000 A SBK 0.00 0.00 0 0.00 Standard Black
215713 21970 3 0.000 A 0.000 A 100 0.00 0.00 0 0.00 100-Black
222890 22588 3 0.000 A 0.000 A 0.00 0.00 21970 0.00 Same as Shade
225842 22757 3 0.000 A 0.000 A 100 0.00 0.00 0 0.00 100-Black
239872 23772 3 0.000 A 0.000 A E26 0.00 0.00 0 0.00 Standard Incandescent
215557 21954 5 5.000 A 0.000 A SWH 0.00 0.00 0 0.32 Standard White
215714 21970 5 0.000 A 0.000 A 105 0.00 0.00 0 0.00 105-Textured Black
222891 22588 5 0.000 A 0.000 A 100 0.00 0.00 0 0.00 100-Black
225843 22757 5 0.000 A 0.000 A 105 0.00 0.00 0 0.00 105-Textured Black
239873 23772 5 220.000 A 0.000 A E26/3 0.00 0.00 0 0.00 Standard Incandescent / Triple E26
240409 23772 7 360.000 A 0.000 A E26/5 0.00 0.00 0 0.00 Standard Incandescent / 5 Socket
215558 21954 10 10.000 A 0.000 A CSB 0.00 0.00 0 3.66 Black Cloth
215715 21970 10 0.000 A 0.000 A 200 0.00 0.00 0 0.00 200-White
222892 22588 10 0.000 A 0.000 A 105 0.00 0.00 0 0.00 105-Textured Black
225844 22757 10 0.000 A 0.000 A 200 0.00 0.00 0 0.00 200-White
215516 21951 15 25.000 A 0.000 A CN72 0.00 0.00 0 0.00 6 Feet of Chain
215559 21954 15 10.000 A 0.000 A SLVR 0.00 0.00 0 3.66 Silver Cloth
215716 21970 15 0.000 A 0.000 A 300 0.00 0.00 0 0.00 300-Dark Green
222893 22588 15 0.000 A 0.000 A 200 0.00 0.00 0 0.00 200-White
225845 22757 15 0.000 A 0.000 A 300 0.00 0.00 0 0.00 300-Dark Green
215738 21970 18 0.000 A 0.000 A 975 0.00 0.00 0 0.00 975-Galvanized
215731 21970 19 0.000 A 0.000 A 605 0.00 0.00 0 0.00 605-Textured Rust
215560 21954 20 10.000 A 0.000 A CRM 0.00 0.00 0 3.66 Creme Cloth
222894 22588 20 0.000 A 0.000 A 300 0.00 0.00 0 0.00 300-Dark Green
225846 22757 20 0.000 A 0.000 A 975 0.00 0.00 0 0.00 975-Galvanized
237036 21970 21 18.000 A 0.000 A 106 0.00 0.00 0 0.00 106-Matte Black
237037 21970 22 18.000 A 0.000 A 206 0.00 0.00 0 0.00 206-Matte White
215717 21970 24 18.000 A 0.000 A 307 0.00 0.00 0 0.00 307-Emerald Green
215561 21954 25 10.000 A 0.000 A BPNK 0.00 0.00 0 3.66 Blush Pink Cloth
222895 22588 25 0.000 A 0.000 A 975 0.00 0.00 0 0.00 975-Galvanized
225847 22757 25 0.000 A 0.000 A 605 0.00 0.00 0 0.00 605-Rust
242135 21970 25 18.000 A 0.000 A 311 0.00 0.00 0 0.00 311-Jadite
241141 21970 26 18.000 A 0.000 A 320 0.00 0.00 0 0.00 320-Fern Green
215718 21970 28 18.000 A 0.000 A 370 0.00 0.00 0 0.00 370-Mint
215562 21954 30 30.000 A 0.000 A CNF 0.00 0.00 0 10.66 Confetti Cloth
215719 21970 30 18.000 A 0.000 A 380 0.00 0.00 0 0.00 380-Chartreuse
225848 22757 30 7.000 A 0.000 A 307 0.00 0.00 0 0.00 307-Emerald Green
215563 21954 35 10.000 A 0.000 A RST 0.00 0.00 0 3.66 Rust Cloth
215720 21970 35 18.000 A 0.000 A 390 0.00 0.00 0 0.00 390-Teal
222897 22588 35 0.000 A 0.000 A 605 0.00 0.00 0 0.00 605-Textured Rust
225849 22757 35 7.000 A 0.000 A 370 0.00 0.00 0 0.00 370-Mint
237096 22588 37 11.000 A 0.000 A 106 0.00 0.00 0 0.00 106-Matte Black
237097 22588 38 11.000 A 0.000 A 206 0.00 0.00 0 0.00 206-Matte White
215564 21954 40 15.000 A 0.000 A RBS 0.00 0.00 0 6.81 Barn Red & Black Swirl Cloth
215721 21970 40 18.000 A 0.000 A 400 0.00 0.00 0 0.00 400-Barn Red
222898 22588 40 11.000 A 0.000 A 307 0.00 0.00 0 0.00 307-Emerald Green
225850 22757 40 7.000 A 0.000 A 380 0.00 0.00 0 0.00 380-Chartreuse
242748 22588 42 11.000 A 0.000 A 311 0.00 0.00 0 0.00 311-Jadite
241266 22588 43 11.000 A 0.000 A 320 0.00 0.00 0 0.00 320-Fern Green
215565 21954 45 10.000 A 0.000 A ORG 0.00 0.00 0 3.66 Orange Cloth
215722 21970 45 18.000 A 0.000 A 420 0.00 0.00 0 0.00 420-Orange
222899 22588 45 11.000 A 0.000 A 370 0.00 0.00 0 0.00 370-Mint
225851 22757 45 7.000 A 0.000 A 390 0.00 0.00 0 0.00 390-Teal
241142 21970 48 18.000 A 0.000 A 430 0.00 0.00 0 0.00 430-Soft Clay
215566 21954 50 10.000 A 0.000 A YLW 0.00 0.00 0 3.66 Buttery Yellow Cloth
215723 21970 50 18.000 A 0.000 A 470 0.00 0.00 0 0.00 470-Watermelon
222900 22588 50 11.000 A 0.000 A 380 0.00 0.00 0 0.00 380-Chartreuse
225852 22757 50 7.000 A 0.000 A 400 0.00 0.00 0 0.00 400-Barn Red
215567 21954 55 10.000 A 0.000 A NGRN 0.00 0.00 0 3.66 Neon Green Cloth
215724 21970 55 18.000 A 0.000 A 480 0.00 0.00 0 0.00 480-Blush Pink
222901 22588 55 11.000 A 0.000 A 390 0.00 0.00 0 0.00 390-Teal
225853 22757 55 7.000 A 0.000 A 420 0.00 0.00 0 0.00 420-Orange
215568 21954 60 10.000 A 0.000 A EGRN 0.00 0.00 0 3.66 Emerald Green Cloth
215725 21970 60 18.000 A 0.000 A 490 0.00 0.00 0 0.00 490-Magenta
222902 22588 60 11.000 A 0.000 A 400 0.00 0.00 0 0.00 400-Barn Red
225854 22757 60 7.000 A 0.000 A 470 0.00 0.00 0 0.00 470-Watermelon
215569 21954 65 30.000 A 0.000 A FGRN 0.00 0.00 0 10.66 Fern Green Chevron Cloth
215726 21970 65 18.000 A 0.000 A 495 0.00 0.00 0 0.00 495-Sherbet Orange
222903 22588 65 11.000 A 0.000 A 420 0.00 0.00 0 0.00 420-Orange
225855 22757 65 7.000 A 0.000 A 480 0.00 0.00 0 0.00 480-Blush Pink
241267 22588 68 11.000 A 0.000 A 430 0.00 0.00 0 0.00 430-Soft Clay
215727 21970 70 18.000 A 0.000 A 500 0.00 0.00 0 0.00 500-Buttery Yellow
222904 22588 70 11.000 A 0.000 A 470 0.00 0.00 0 0.00 470-Watermelon
225856 22757 70 7.000 A 0.000 A 490 0.00 0.00 0 0.00 490-Magenta
243103 21954 70 10.000 A 0.000 A SFM 0.00 0.00 0 3.66 Seafoam Cloth
215728 21970 75 18.000 A 0.000 A 570 0.00 0.00 0 0.00 570-Sunflower
222905 22588 75 11.000 A 0.000 A 480 0.00 0.00 0 0.00 480-Blush Pink
225857 22757 75 7.000 A 0.000 A 495 0.00 0.00 0 0.00 495-Sherbet Orange
243104 21954 75 10.000 A 0.000 A SBLU 0.00 0.00 0 3.66 Sky Blue Cloth
215729 21970 80 18.000 A 0.000 A 600 0.00 0.00 0 0.00 600-Bronze
222906 22588 80 11.000 A 0.000 A 490 0.00 0.00 0 0.00 490-Magenta
225858 22757 80 7.000 A 0.000 A 500 0.00 0.00 0 0.00 500-Buttery Yellow
243105 21954 80 10.000 A 0.000 A RBLU 0.00 0.00 0 3.66 Royal Blue Cloth
215730 21970 85 18.000 A 0.000 A 601 0.00 0.00 0 0.00 601-Chocolate
222907 22588 85 11.000 A 0.000 A 495 0.00 0.00 0 0.00 495-Sherbet Orange
225859 22757 85 7.000 A 0.000 A 570 0.00 0.00 0 0.00 570-Sunflower
243106 21954 85 10.000 A 0.000 A NVY 0.00 0.00 0 3.66 Navy Cloth
222908 22588 90 11.000 A 0.000 A 500 0.00 0.00 0 0.00 500-Buttery Yellow
225860 22757 90 7.000 A 0.000 A 600 0.00 0.00 0 0.00 600-Bronze
241143 21970 90 18.000 A 0.000 A 607 0.00 0.00 0 0.00 607-Taupe
215732 21970 95 18.000 A 0.000 A 615 0.00 0.00 0 0.00 615-Oil-Rubbed Bronze
222909 22588 95 11.000 A 0.000 A 570 0.00 0.00 0 0.00 570-Sunflower
225861 22757 95 7.000 A 0.000 A 601 0.00 0.00 0 0.00 601-Chocolate
241144 21970 98 18.000 A 0.000 A 630 0.00 0.00 0 0.00 630-Beige
215733 21970 100 18.000 A 0.000 A 700 0.00 0.00 0 0.00 700-Royal Blue
222910 22588 100 11.000 A 0.000 A 600 0.00 0.00 0 0.00 600-Bronze
225862 22757 100 7.000 A 0.000 A 615 0.00 0.00 0 0.00 615-Oil-Rubbed Bronze
215734 21970 105 18.000 A 0.000 A 705 0.00 0.00 0 0.00 705-Navy
222911 22588 105 11.000 A 0.000 A 601 0.00 0.00 0 0.00 601-Chocolate
225863 22757 105 7.000 A 0.000 A 700 0.00 0.00 0 0.00 700-Royal Blue
241268 22588 108 11.000 A 0.000 A 607 0.00 0.00 0 0.00 607-Taupe
215735 21970 110 18.000 A 0.000 A 790 0.00 0.00 0 0.00 790-Lavender
222912 22588 110 11.000 A 0.000 A 615 0.00 0.00 0 0.00 615-Oil-Rubbed Bronze
225864 22757 110 7.000 A 0.000 A 705 0.00 0.00 0 0.00 705-Navy
242136 21970 112 18.000 A 0.000 A 710 0.00 0.00 0 0.00 710-Cobalt Blue
241269 22588 113 11.000 A 0.000 A 630 0.00 0.00 0 0.00 630-Beige
242137 21970 113 18.000 A 0.000 A 715 0.00 0.00 0 0.00 715-Delphite Blue
215736 21970 115 18.000 A 0.000 A 800 0.00 0.00 0 0.00 800-Industrial Grey
222913 22588 115 11.000 A 0.000 A 700 0.00 0.00 0 0.00 700-Royal Blue
225865 22757 115 7.000 A 0.000 A 790 0.00 0.00 0 0.00 790-Lavender
215737 21970 120 18.000 A 0.000 A 805 0.00 0.00 0 0.00 805-Charcoal Granite
222914 22588 120 11.000 A 0.000 A 705 0.00 0.00 0 0.00 705-Navy
225866 22757 120 7.000 A 0.000 A 800 0.00 0.00 0 0.00 800-Industrial Grey
242138 21970 123 18.000 A 0.000 A 810 0.00 0.00 0 0.00 810-Graphite
242749 22588 123 11.000 A 0.000 A 710 0.00 0.00 0 0.00 710-Cobalt Blue
242750 22588 124 11.000 A 0.000 A 715 0.00 0.00 0 0.00 715-Delphite Blue
222915 22588 125 11.000 A 0.000 A 800 0.00 0.00 0 0.00 800-Industrial Grey
225867 22757 125 7.000 A 0.000 A 805 0.00 0.00 0 0.00 805-Charcoal Granite
241145 21970 125 18.000 A 0.000 A 815 0.00 0.00 0 0.00 815-Light Grey
225872 22757 127 10.000 A 0.000 A 930 0.00 0.00 0 0.00 930-Painted Aged Brass
225873 22757 129 10.000 A 0.000 A 940 0.00 0.00 0 0.00 940-Painted Aged Copper
225868 22757 130 7.000 A 0.000 A 311 0.00 0.00 0 0.00 311-Jadite
222916 22588 135 11.000 A 0.000 A 805 0.00 0.00 0 0.00 805-Charcoal Granite
225869 22757 135 7.000 A 0.000 A 710 0.00 0.00 0 0.00 710-Cobalt Blue
242751 22588 138 11.000 A 0.000 A 810 0.00 0.00 0 0.00 810-Graphite
225870 22757 140 7.000 A 0.000 A 715 0.00 0.00 0 0.00 715-Delphite Blue
241270 22588 140 11.000 A 0.000 A 815 0.00 0.00 0 0.00 815-Light Grey
225871 22757 145 7.000 A 0.000 A 810 0.00 0.00 0 0.00 810-Graphite