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 (
    23864, 23878, 23879, 24009, 24010, 23865, 
    23880, 22644, 24008
  ) 
  AND a.status = 'A' 
ORDER BY 
  a.position, 
  a.variant_id

Query time 0.00260

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": 175,
          "filtered": 100,
          "index_condition": "a.option_id in (23864,23878,23879,24009,24010,23865,23880,22644,24008) 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
240655 23864 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
240660 23865 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
240844 23878 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
240880 23879 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
240891 23880 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
244204 24008 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
244232 24009 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
244268 24010 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
240856 23879 2 0.000 A 0.000 A 200 0.00 0.00 0 0.00 200-White
240656 23865 3 0.000 A 0.000 A ASH 0.00 0.00 0 0.00 Ash Wood
240817 23864 3 0.000 A 0.000 A CVR12 0.00 0.00 0 0.00 12" Shade
240818 23878 3 0.000 A 0.000 A 100 0.00 0.00 0 0.00 100-Black
240854 23879 3 0.000 A 0.000 A 100 0.00 0.00 0 0.00 100-Black
244205 24008 3 0.000 A 0.000 A CVR12 0.00 0.00 0 0.00 12" Shade
223756 22644 5 0.000 A 0.000 A 2700K 0.00 0.00 0 0.00 2700K - Warm White/Soft White
240652 23864 5 69.000 A 0.000 A CVR16 49.00 0.00 0 0.00 16" Shade
240657 23865 5 0.000 A 0.000 A MPL 0.00 0.00 0 0.00 Maple Wood
240819 23878 5 0.000 A 0.000 A 105 0.00 0.00 0 0.00 105-Textured Black
240855 23879 5 0.000 A 0.000 A 105 0.00 0.00 0 0.00 105-Textured Black
240890 23880 5 0.000 A 0.000 A ACLED10 0.00 0.00 0 0.00 10W LED - 831 Lumen
244202 24008 5 69.000 A 0.000 A CVR16 49.00 0.00 0 0.00 16" Shade
223757 22644 10 0.000 A 0.000 A 3000K 0.00 0.00 0 0.00 3000K - Neutral White
240654 23864 10 102.000 A 0.000 A CVR20 73.00 0.00 0 0.00 20" Shade
240658 23865 10 0.000 A 0.000 A OAK 0.00 0.00 0 0.00 Oak Wood
240820 23878 10 0.000 A 0.000 A 200 0.00 0.00 0 0.00 200-White
240892 23880 10 0.000 A 0.000 A CCTAC10 0.00 0.00 0 0.00 10W LED - 980 Lumen
244203 24008 10 102.000 A 0.000 A CVR20 73.00 0.00 0 0.00 20" Shade
223758 22644 15 0.000 A 0.000 A 3500K 0.00 0.00 0 0.00 3500K - Bright White
240659 23865 15 0.000 A 0.000 A WAL 0.00 0.00 0 0.00 Walnut Wood
240821 23878 15 0.000 A 0.000 A 300 0.00 0.00 0 0.00 300-Dark Green
240857 23879 15 0.000 A 0.000 A 300 0.00 0.00 0 0.00 300-Dark Green
240843 23878 18 0.000 A 0.000 A 975 0.00 0.00 0 0.00 975-Galvanized
240879 23879 18 0.000 A 0.000 A 975 0.00 0.00 0 0.00 975-Galvanized
240836 23878 19 0.000 A 0.000 A 605 0.00 0.00 0 0.00 605-Textured Rust
240872 23879 19 0.000 A 0.000 A 605 0.00 0.00 0 0.00 605-Textured Rust
223759 22644 20 0.000 A 0.000 A 4000K 0.00 0.00 0 0.00 4000K - Cool White
240845 23878 21 18.000 A 0.000 A 106 0.00 0.00 0 0.00 106-Matte Black
240881 23879 21 18.000 A 0.000 A 106 0.00 0.00 0 0.00 106-Matte Black
240846 23878 22 18.000 A 0.000 A 206 0.00 0.00 0 0.00 206-Matte White
240882 23879 22 18.000 A 0.000 A 206 0.00 0.00 0 0.00 206-Matte White
240822 23878 24 18.000 A 0.000 A 307 0.00 0.00 0 0.00 307-Emerald Green
240858 23879 24 18.000 A 0.000 A 307 0.00 0.00 0 0.00 307-Emerald Green
240848 23878 26 18.000 A 0.000 A 320 0.00 0.00 0 0.00 320-Fern Green
240884 23879 26 18.000 A 0.000 A 320 0.00 0.00 0 0.00 320-Fern Green
240823 23878 28 18.000 A 0.000 A 370 0.00 0.00 0 0.00 370-Mint
240859 23879 28 18.000 A 0.000 A 370 0.00 0.00 0 0.00 370-Mint
240824 23878 30 18.000 A 0.000 A 380 0.00 0.00 0 0.00 380-Chartreuse
240860 23879 30 18.000 A 0.000 A 380 0.00 0.00 0 0.00 380-Chartreuse
240825 23878 35 18.000 A 0.000 A 390 0.00 0.00 0 0.00 390-Teal
240861 23879 35 18.000 A 0.000 A 390 0.00 0.00 0 0.00 390-Teal
240826 23878 40 18.000 A 0.000 A 400 0.00 0.00 0 0.00 400-Barn Red
240862 23879 40 18.000 A 0.000 A 400 0.00 0.00 0 0.00 400-Barn Red
240827 23878 45 18.000 A 0.000 A 420 0.00 0.00 0 0.00 420-Orange
240863 23879 45 18.000 A 0.000 A 420 0.00 0.00 0 0.00 420-Orange
240849 23878 47 18.000 A 0.000 A 430 0.00 0.00 0 0.00 430-Soft Clay
240885 23879 47 18.000 A 0.000 A 430 0.00 0.00 0 0.00 430-Soft Clay
240828 23878 50 18.000 A 0.000 A 470 0.00 0.00 0 0.00 470-Watermelon
240864 23879 50 18.000 A 0.000 A 470 0.00 0.00 0 0.00 470-Watermelon
244231 24009 50 0.000 A 0.000 A 995 0.00 0.00 0 0.00 995-Raw Copper
244267 24010 50 0.000 A 0.000 A 997 0.00 0.00 0 0.00 997-Raw Brass
240829 23878 55 18.000 A 0.000 A 480 0.00 0.00 0 0.00 480-Blush Pink
240865 23879 55 18.000 A 0.000 A 480 0.00 0.00 0 0.00 480-Blush Pink
244207 24009 55 18.000 A 0.000 A 100 0.00 0.00 0 0.00 100-Black
244243 24010 55 18.000 A 0.000 A 100 0.00 0.00 0 0.00 100-Black
240830 23878 60 18.000 A 0.000 A 490 0.00 0.00 0 0.00 490-Magenta
240866 23879 60 18.000 A 0.000 A 490 0.00 0.00 0 0.00 490-Magenta
244208 24009 60 18.000 A 0.000 A 105 0.00 0.00 0 0.00 105-Textured Black
244244 24010 60 18.000 A 0.000 A 105 0.00 0.00 0 0.00 105-Textured Black
240831 23878 65 18.000 A 0.000 A 495 0.00 0.00 0 0.00 495-Sherbet Orange
240867 23879 65 18.000 A 0.000 A 495 0.00 0.00 0 0.00 495-Sherbet Orange
244206 24009 65 0.000 A 0.000 A 200 0.00 0.00 0 0.00 200-White
244242 24010 65 0.000 A 0.000 A 200 0.00 0.00 0 0.00 200-White
240832 23878 70 18.000 A 0.000 A 500 0.00 0.00 0 0.00 500-Buttery Yellow
240868 23879 70 18.000 A 0.000 A 500 0.00 0.00 0 0.00 500-Buttery Yellow
244209 24009 70 18.000 A 0.000 A 300 0.00 0.00 0 0.00 300-Dark Green
244245 24010 70 18.000 A 0.000 A 300 0.00 0.00 0 0.00 300-Dark Green
240833 23878 75 18.000 A 0.000 A 570 0.00 0.00 0 0.00 570-Sunflower
240869 23879 75 18.000 A 0.000 A 570 0.00 0.00 0 0.00 570-Sunflower
244210 24009 75 18.000 A 0.000 A 975 0.00 0.00 0 0.00 975-Galvanized
244246 24010 75 18.000 A 0.000 A 975 0.00 0.00 0 0.00 975-Galvanized
240834 23878 80 18.000 A 0.000 A 600 0.00 0.00 0 0.00 600-Bronze
240870 23879 80 18.000 A 0.000 A 600 0.00 0.00 0 0.00 600-Bronze
244211 24009 80 18.000 A 0.000 A 605 0.00 0.00 0 0.00 605-Textured Rust
244247 24010 80 18.000 A 0.000 A 605 0.00 0.00 0 0.00 605-Textured Rust
244235 24009 82 18.000 A 0.000 A 106 0.00 0.00 0 0.00 106-Matte Black
244271 24010 82 18.000 A 0.000 A 106 0.00 0.00 0 0.00 106-Matte Black
244236 24009 83 18.000 A 0.000 A 206 0.00 0.00 0 0.00 206-Matte White
244272 24010 83 18.000 A 0.000 A 206 0.00 0.00 0 0.00 206-Matte White
240835 23878 85 18.000 A 0.000 A 601 0.00 0.00 0 0.00 601-Chocolate
240871 23879 85 18.000 A 0.000 A 601 0.00 0.00 0 0.00 601-Chocolate
244212 24009 85 18.000 A 0.000 A 307 0.00 0.00 0 0.00 307-Emerald Green
244248 24010 85 18.000 A 0.000 A 307 0.00 0.00 0 0.00 307-Emerald Green
244237 24009 88 18.000 A 0.000 A 320 0.00 0.00 0 0.00 320-Fern Green
244273 24010 88 18.000 A 0.000 A 320 0.00 0.00 0 0.00 320-Fern Green
240850 23878 90 18.000 A 0.000 A 607 0.00 0.00 0 0.00 607-Taupe
240886 23879 90 18.000 A 0.000 A 607 0.00 0.00 0 0.00 607-Taupe
244213 24009 90 18.000 A 0.000 A 370 0.00 0.00 0 0.00 370-Mint
244249 24010 90 18.000 A 0.000 A 370 0.00 0.00 0 0.00 370-Mint
240851 23878 92 18.000 A 0.000 A 630 0.00 0.00 0 0.00 630-Beige
240887 23879 92 18.000 A 0.000 A 630 0.00 0.00 0 0.00 630-Beige
240837 23878 95 18.000 A 0.000 A 615 0.00 0.00 0 0.00 615-Oil-Rubbed Bronze
240873 23879 95 18.000 A 0.000 A 615 0.00 0.00 0 0.00 615-Oil-Rubbed Bronze
244214 24009 95 18.000 A 0.000 A 380 0.00 0.00 0 0.00 380-Chartreuse
244250 24010 95 18.000 A 0.000 A 380 0.00 0.00 0 0.00 380-Chartreuse
240838 23878 100 18.000 A 0.000 A 700 0.00 0.00 0 0.00 700-Royal Blue
240874 23879 100 18.000 A 0.000 A 700 0.00 0.00 0 0.00 700-Royal Blue
244215 24009 100 18.000 A 0.000 A 390 0.00 0.00 0 0.00 390-Teal
244251 24010 100 18.000 A 0.000 A 390 0.00 0.00 0 0.00 390-Teal
240839 23878 105 18.000 A 0.000 A 705 0.00 0.00 0 0.00 705-Navy
240875 23879 105 18.000 A 0.000 A 705 0.00 0.00 0 0.00 705-Navy
244216 24009 105 18.000 A 0.000 A 400 0.00 0.00 0 0.00 400-Barn Red
244252 24010 105 18.000 A 0.000 A 400 0.00 0.00 0 0.00 400-Barn Red
240840 23878 110 18.000 A 0.000 A 790 0.00 0.00 0 0.00 790-Lavender
240876 23879 110 18.000 A 0.000 A 790 0.00 0.00 0 0.00 790-Lavender
244217 24009 110 18.000 A 0.000 A 420 0.00 0.00 0 0.00 420-Orange
244253 24010 110 18.000 A 0.000 A 420 0.00 0.00 0 0.00 420-Orange
244238 24009 113 18.000 A 0.000 A 430 0.00 0.00 0 0.00 430-Soft Clay
244274 24010 113 18.000 A 0.000 A 430 0.00 0.00 0 0.00 430-Soft Clay
240841 23878 115 18.000 A 0.000 A 800 0.00 0.00 0 0.00 800-Industrial Grey
240877 23879 115 18.000 A 0.000 A 800 0.00 0.00 0 0.00 800-Industrial Grey
244218 24009 115 18.000 A 0.000 A 470 0.00 0.00 0 0.00 470-Watermelon
244254 24010 115 18.000 A 0.000 A 470 0.00 0.00 0 0.00 470-Watermelon
240842 23878 120 18.000 A 0.000 A 805 0.00 0.00 0 0.00 805-Charcoal Granite
240878 23879 120 18.000 A 0.000 A 805 0.00 0.00 0 0.00 805-Charcoal Granite
244219 24009 120 18.000 A 0.000 A 480 0.00 0.00 0 0.00 480-Blush Pink
244255 24010 120 18.000 A 0.000 A 480 0.00 0.00 0 0.00 480-Blush Pink
240853 23878 125 18.000 A 0.000 A 815 0.00 0.00 0 0.00 815-Light Grey
240889 23879 125 18.000 A 0.000 A 815 0.00 0.00 0 0.00 815-Light Grey
244220 24009 125 18.000 A 0.000 A 490 0.00 0.00 0 0.00 490-Magenta
244256 24010 125 18.000 A 0.000 A 490 0.00 0.00 0 0.00 490-Magenta
242952 23878 130 18.000 A 0.000 A 311 0.00 0.00 0 0.00 311-Jadite
242961 23879 130 18.000 A 0.000 A 311 0.00 0.00 0 0.00 311-Jadite
244221 24009 130 18.000 A 0.000 A 495 0.00 0.00 0 0.00 495-Sherbet Orange
244257 24010 130 18.000 A 0.000 A 495 0.00 0.00 0 0.00 495-Sherbet Orange
242953 23878 135 18.000 A 0.000 A 710 0.00 0.00 0 0.00 710-Cobalt Blue
242962 23879 135 18.000 A 0.000 A 710 0.00 0.00 0 0.00 710-Cobalt Blue
244222 24009 135 18.000 A 0.000 A 500 0.00 0.00 0 0.00 500-Buttery Yellow
244258 24010 135 18.000 A 0.000 A 500 0.00 0.00 0 0.00 500-Buttery Yellow
242954 23878 140 18.000 A 0.000 A 715 0.00 0.00 0 0.00 715-Delphite Blue
242963 23879 140 18.000 A 0.000 A 715 0.00 0.00 0 0.00 715-Delphite Blue
244223 24009 140 18.000 A 0.000 A 570 0.00 0.00 0 0.00 570-Sunflower
244259 24010 140 18.000 A 0.000 A 570 0.00 0.00 0 0.00 570-Sunflower
242955 23878 145 18.000 A 0.000 A 810 0.00 0.00 0 0.00 810-Graphite
242964 23879 145 18.000 A 0.000 A 815 0.00 0.00 0 0.00 810-Graphite
244224 24009 145 18.000 A 0.000 A 600 0.00 0.00 0 0.00 600-Bronze
244260 24010 145 18.000 A 0.000 A 600 0.00 0.00 0 0.00 600-Bronze
242956 23878 150 160.000 A 0.000 A 995 0.00 0.00 0 0.00 995-Raw Copper
242965 23879 150 160.000 A 0.000 A 995 0.00 0.00 0 0.00 995-Raw Copper
244225 24009 150 18.000 A 0.000 A 601 0.00 0.00 0 0.00 601-Chocolate
244261 24010 150 18.000 A 0.000 A 601 0.00 0.00 0 0.00 601-Chocolate
244239 24009 153 18.000 A 0.000 A 607 0.00 0.00 0 0.00 607-Taupe
244275 24010 153 18.000 A 0.000 A 607 0.00 0.00 0 0.00 607-Taupe
242957 23878 155 200.000 A 0.000 A 996 0.00 0.00 0 0.00 996-Weathered Copper
242966 23879 155 200.000 A 0.000 A 996 0.00 0.00 0 0.00 996-Weathered Copper
244226 24009 155 18.000 A 0.000 A 615 0.00 0.00 0 0.00 615-Oil-Rubbed Bronze
244262 24010 155 18.000 A 0.000 A 615 0.00 0.00 0 0.00 615-Oil-Rubbed Bronze
244240 24009 158 18.000 A 0.000 A 630 0.00 0.00 0 0.00 630-Beige
244276 24010 158 18.000 A 0.000 A 630 0.00 0.00 0 0.00 630-Beige
242958 23878 160 250.000 A 0.000 A 999 0.00 0.00 0 0.00 999-Oil-Rubbed Copper
242967 23879 160 250.000 A 0.000 A 999 0.00 0.00 0 0.00 999-Oil-Rubbed Copper
244227 24009 160 18.000 A 0.000 A 700 0.00 0.00 0 0.00 700-Royal Blue
244263 24010 160 18.000 A 0.000 A 700 0.00 0.00 0 0.00 700-Royal Blue
242959 23878 165 210.000 A 0.000 A 997 0.00 0.00 0 0.00 997-Raw Brass
242968 23879 165 210.000 A 0.000 A 997 0.00 0.00 0 0.00 997-Raw Brass
244228 24009 165 18.000 A 0.000 A 705 0.00 0.00 0 0.00 705-Navy
244264 24010 165 18.000 A 0.000 A 705 0.00 0.00 0 0.00 705-Navy
242960 23878 170 250.000 A 0.000 A 998 0.00 0.00 0 0.00 998-Weathered Brass
242969 23879 170 250.000 A 0.000 A 998 0.00 0.00 0 0.00 998-Weathered Brass
244229 24009 170 18.000 A 0.000 A 800 0.00 0.00 0 0.00 800-Industrial Grey
244265 24010 170 18.000 A 0.000 A 800 0.00 0.00 0 0.00 800-Industrial Grey
244230 24009 175 18.000 A 0.000 A 805 0.00 0.00 0 0.00 805-Charcoal Granite
244266 24010 175 18.000 A 0.000 A 805 0.00 0.00 0 0.00 805-Charcoal Granite
244241 24009 176 18.000 A 0.000 A 815 0.00 0.00 0 0.00 815-Light Grey
244277 24010 176 18.000 A 0.000 A 815 0.00 0.00 0 0.00 815-Light Grey