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 (
    21970, 22746, 22224, 23570, 22723, 22724, 
    22725, 22727, 22728, 23571, 22395
  ) 
  AND a.status = 'A' 
ORDER BY 
  a.position, 
  a.variant_id

Query time 0.00295

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": 178,
          "filtered": 100,
          "index_condition": "a.option_id in (21970,22746,22224,23570,22723,22724,22725,22727,22728,23571,22395) 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
220212 22224 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
221140 22395 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
225255 22723 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
225266 22724 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
225277 22725 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
225335 22727 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
225366 22728 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
225700 22746 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
237792 23570 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
237823 23571 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
215713 21970 3 0.000 A 0.000 A 100 0.00 0.00 0 0.00 100-Black
225245 22723 3 0.000 A 0.000 A CLR 0.00 0.00 0 0.00 Clear Glass
225256 22724 3 0.000 A 0.000 A CLR 0.00 0.00 0 0.00 Clear Glass
225267 22725 3 0.000 A 0.000 A CLR 0.00 0.00 0 0.00 Clear Glass
225305 22727 3 0.000 A 0.000 A 100 0.00 0.00 0 0.00 100-Black
225336 22728 3 0.000 A 0.000 A 100 0.00 0.00 0 0.00 100-Black
237786 23570 3 0.000 A 0.000 A NA 0.00 0.00 0 0.00 None
237793 23571 3 0.000 A 0.000 A 100 0.00 0.00 0 0.00 100-Black
215714 21970 5 0.000 A 0.000 A 105 0.00 0.00 0 0.00 105-Textured Black
219067 22224 5 0.000 A 0.000 A SC 0.00 0.00 0 0.00 Standard Canopy
221141 22395 5 0.000 A 0.000 A E26 0.00 0.00 0 0.00 Standard Incandescent
225246 22723 5 40.000 A 0.000 A FST 0.00 0.00 0 0.00 Frosted Glass
225257 22724 5 40.000 A 0.000 A FST 0.00 0.00 0 0.00 Frosted Glass
225268 22725 5 40.000 A 0.000 A FST 0.00 0.00 0 0.00 Frosted Glass
225306 22727 5 0.000 A 0.000 A 105 0.00 0.00 0 0.00 105-Textured Black
225337 22728 5 0.000 A 0.000 A 105 0.00 0.00 0 0.00 105-Textured Black
237787 23570 5 348.000 A 0.000 A ACR 0.00 0.00 0 {"215104":"85.00","215105":"95.00","215106":"140.00","215107":"165.00","217563":"65.00","217565":"85.00","217566":"95.00","217689":"95.00","217690":"140.00","217876":"85.00","218827":"65.00","218916":"85.00","218917":"95.00","219017":"85.00","219018":"95.00"} 0.00 Acrylic Diffuser
237794 23571 5 0.000 A 0.000 A 105 0.00 0.00 0 0.00 105-Textured Black
215715 21970 10 0.000 A 0.000 A 200 0.00 0.00 0 0.00 200-White
219068 22224 10 44.000 A 0.000 A HSC 0.00 0.00 0 0.00 25° Hang Straight Canopy
221142 22395 10 53.000 A 0.000 A GU24 0.00 0.00 0 0.00 GU24
225247 22723 10 40.000 A 0.000 A RIB 0.00 0.00 0 0.00 Ribbed Glass
225258 22724 10 40.000 A 0.000 A RIB 0.00 0.00 0 0.00 Ribbed Glass
225269 22725 10 40.000 A 0.000 A RIB 0.00 0.00 0 0.00 Ribbed Glass
225307 22727 10 0.000 A 0.000 A 200 0.00 0.00 0 0.00 200-White
225338 22728 10 0.000 A 0.000 A 200 0.00 0.00 0 0.00 200-White
225702 22746 10 0.000 A 0.000 A ST512 0.00 0.00 0 0.00 12" Stem - ½ Diameter
237788 23570 10 194.000 A 0.000 A WC 0.00 0.00 0 {"215106":"48.00","215107":"53.00"} 0.00 Wire Cage
237795 23571 10 0.000 A 0.000 A 200 0.00 0.00 0 0.00 200-White
215716 21970 15 0.000 A 0.000 A 300 0.00 0.00 0 0.00 300-Dark Green
219069 22224 15 24.000 A 0.000 A HDSMC 0.00 0.00 0 0.00 Heavy Duty Canopy
225308 22727 15 0.000 A 0.000 A 300 0.00 0.00 0 0.00 300-Dark Green
225339 22728 15 0.000 A 0.000 A 300 0.00 0.00 0 0.00 300-Dark Green
225703 22746 15 5.000 A 0.000 A ST518 0.00 0.00 0 0.00 18" Stem - ½ Diameter
237789 23570 15 388.000 A 0.000 A WGG 0.00 0.00 0 0.00 Wire Guard & Glass
237796 23571 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
225309 22727 20 0.000 A 0.000 A 975 0.00 0.00 0 0.00 975-Galvanized
225340 22728 20 0.000 A 0.000 A 975 0.00 0.00 0 0.00 975-Galvanized
225704 22746 20 7.000 A 0.000 A ST524 0.00 0.00 0 0.00 24" Stem - ½ Diameter
237790 23570 20 388.000 A 0.000 A CGG 0.00 0.00 0 0.00 Cast Guard & Glass
237797 23571 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
225310 22727 25 0.000 A 0.000 A 605 0.00 0.00 0 0.00 605-Textured Rust
225341 22728 25 0.000 A 0.000 A 605 0.00 0.00 0 0.00 605-Textured Rust
225705 22746 25 12.000 A 0.000 A ST536 0.00 0.00 0 0.00 36" Stem - ½ Diameter
237791 23570 25 388.000 A 0.000 A TGG 0.00 0.00 0 0.00 Heavy Duty Guard & Glass
237798 23571 25 0.000 A 0.000 A 605 0.00 0.00 0 0.00 605-Textured 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
237186 22727 27 44.000 A 0.000 A 106 0.00 0.00 0 0.00 106-Matte Black
237188 22728 27 44.000 A 0.000 A 106 0.00 0.00 0 0.00 106-Matte Black
237824 23571 27 44.000 A 0.000 A 106 0.00 0.00 0 0.00 106-Matte Black
215718 21970 28 18.000 A 0.000 A 370 0.00 0.00 0 0.00 370-Mint
237187 22727 28 44.000 A 0.000 A 206 0.00 0.00 0 0.00 206-Matte White
237189 22728 28 44.000 A 0.000 A 206 0.00 0.00 0 0.00 206-Matte White
237825 23571 28 44.000 A 0.000 A 206 0.00 0.00 0 0.00 206-Matte White
215719 21970 30 18.000 A 0.000 A 380 0.00 0.00 0 0.00 380-Chartreuse
225311 22727 30 44.000 A 0.000 A 307 0.00 0.00 0 0.00 307-Emerald Green
225342 22728 30 44.000 A 0.000 A 307 0.00 0.00 0 0.00 307-Emerald Green
225706 22746 30 16.000 A 0.000 A ST548 0.00 0.00 0 0.00 48" Stem - ½ Diameter
237799 23571 30 44.000 A 0.000 A 307 0.00 0.00 0 0.00 307-Emerald Green
225331 22727 32 44.000 A 0.000 A 311 0.00 0.00 0 0.00 311-Seafoam
225362 22728 32 44.000 A 0.000 A 311 0.00 0.00 0 0.00 311-Seafoam
237819 23571 32 44.000 A 0.000 A 311 0.00 0.00 0 0.00 311-Seafoam
241954 22727 33 44.000 A 0.000 A 320 0.00 0.00 0 0.00 320-Fern Green
241959 22728 33 44.000 A 0.000 A 320 0.00 0.00 0 0.00 320-Fern Green
241964 23571 33 44.000 A 0.000 A 320 0.00 0.00 0 0.00 320-Fern Green
215720 21970 35 18.000 A 0.000 A 390 0.00 0.00 0 0.00 390-Teal
225312 22727 35 44.000 A 0.000 A 370 0.00 0.00 0 0.00 370-Mint
225343 22728 35 44.000 A 0.000 A 370 0.00 0.00 0 0.00 370-Mint
237800 23571 35 44.000 A 0.000 A 370 0.00 0.00 0 0.00 370-Mint
215721 21970 40 18.000 A 0.000 A 400 0.00 0.00 0 0.00 400-Barn Red
225313 22727 40 44.000 A 0.000 A 380 0.00 0.00 0 0.00 380-Chartreuse
225344 22728 40 44.000 A 0.000 A 380 0.00 0.00 0 0.00 380-Chartreuse
237801 23571 40 44.000 A 0.000 A 380 0.00 0.00 0 0.00 380-Chartreuse
215722 21970 45 18.000 A 0.000 A 420 0.00 0.00 0 0.00 420-Orange
225314 22727 45 44.000 A 0.000 A 390 0.00 0.00 0 0.00 390-Teal
225345 22728 45 44.000 A 0.000 A 390 0.00 0.00 0 0.00 390-Teal
237802 23571 45 44.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
215723 21970 50 18.000 A 0.000 A 470 0.00 0.00 0 0.00 470-Watermelon
225315 22727 50 44.000 A 0.000 A 400 0.00 0.00 0 0.00 400-Barn Red
225346 22728 50 44.000 A 0.000 A 400 0.00 0.00 0 0.00 400-Barn Red
237803 23571 50 44.000 A 0.000 A 400 0.00 0.00 0 0.00 400-Barn Red
215724 21970 55 18.000 A 0.000 A 480 0.00 0.00 0 0.00 480-Blush Pink
225316 22727 55 44.000 A 0.000 A 420 0.00 0.00 0 0.00 420-Orange
225347 22728 55 44.000 A 0.000 A 420 0.00 0.00 0 0.00 420-Orange
237804 23571 55 44.000 A 0.000 A 420 0.00 0.00 0 0.00 420-Orange
241955 22727 58 44.000 A 0.000 A 430 0.00 0.00 0 0.00 430-Soft Clay
241960 22728 58 44.000 A 0.000 A 430 0.00 0.00 0 0.00 430-Soft Clay
241965 23571 58 44.000 A 0.000 A 430 0.00 0.00 0 0.00 430-Soft Clay
215725 21970 60 18.000 A 0.000 A 490 0.00 0.00 0 0.00 490-Magenta
225317 22727 60 44.000 A 0.000 A 470 0.00 0.00 0 0.00 470-Watermelon
225348 22728 60 44.000 A 0.000 A 470 0.00 0.00 0 0.00 470-Watermelon
237805 23571 60 44.000 A 0.000 A 470 0.00 0.00 0 0.00 470-Watermelon
215726 21970 65 18.000 A 0.000 A 495 0.00 0.00 0 0.00 495-Sherbet Orange
225318 22727 65 44.000 A 0.000 A 480 0.00 0.00 0 0.00 480-Blush Pink
225349 22728 65 44.000 A 0.000 A 480 0.00 0.00 0 0.00 480-Blush Pink
237806 23571 65 44.000 A 0.000 A 480 0.00 0.00 0 0.00 480-Blush Pink
215727 21970 70 18.000 A 0.000 A 500 0.00 0.00 0 0.00 500-Buttery Yellow
225319 22727 70 44.000 A 0.000 A 490 0.00 0.00 0 0.00 490-Magenta
225350 22728 70 44.000 A 0.000 A 490 0.00 0.00 0 0.00 490-Magenta
237807 23571 70 44.000 A 0.000 A 490 0.00 0.00 0 0.00 490-Magenta
215728 21970 75 18.000 A 0.000 A 570 0.00 0.00 0 0.00 570-Sunflower
225320 22727 75 44.000 A 0.000 A 495 0.00 0.00 0 0.00 495-Sherbet Orange
225351 22728 75 44.000 A 0.000 A 495 0.00 0.00 0 0.00 495-Sherbet Orange
237808 23571 75 44.000 A 0.000 A 495 0.00 0.00 0 0.00 495-Sherbet Orange
215729 21970 80 18.000 A 0.000 A 600 0.00 0.00 0 0.00 600-Bronze
225321 22727 80 44.000 A 0.000 A 500 0.00 0.00 0 0.00 500-Buttery Yellow
225352 22728 80 44.000 A 0.000 A 500 0.00 0.00 0 0.00 500-Buttery Yellow
237809 23571 80 44.000 A 0.000 A 500 0.00 0.00 0 0.00 500-Buttery Yellow
215730 21970 85 18.000 A 0.000 A 601 0.00 0.00 0 0.00 601-Chocolate
225322 22727 85 44.000 A 0.000 A 570 0.00 0.00 0 0.00 570-Sunflower
225353 22728 85 44.000 A 0.000 A 570 0.00 0.00 0 0.00 570-Sunflower
237810 23571 85 44.000 A 0.000 A 570 0.00 0.00 0 0.00 570-Sunflower
225323 22727 90 44.000 A 0.000 A 600 0.00 0.00 0 0.00 600-Bronze
225354 22728 90 44.000 A 0.000 A 600 0.00 0.00 0 0.00 600-Bronze
237811 23571 90 44.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
225324 22727 95 44.000 A 0.000 A 601 0.00 0.00 0 0.00 601-Chocolate
225355 22728 95 44.000 A 0.000 A 601 0.00 0.00 0 0.00 601-Chocolate
237812 23571 95 44.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
241956 22727 98 44.000 A 0.000 A 607 0.00 0.00 0 0.00 607-Taupe
241961 22728 98 44.000 A 0.000 A 607 0.00 0.00 0 0.00 607-Taupe
241966 23571 98 44.000 A 0.000 A 607 0.00 0.00 0 0.00 607-Taupe
215733 21970 100 18.000 A 0.000 A 700 0.00 0.00 0 0.00 700-Royal Blue
225325 22727 100 44.000 A 0.000 A 615 0.00 0.00 0 0.00 615-Oil-Rubbed Bronze
225356 22728 100 44.000 A 0.000 A 615 0.00 0.00 0 0.00 615-Oil-Rubbed Bronze
237813 23571 100 44.000 A 0.000 A 615 0.00 0.00 0 0.00 615-Oil-Rubbed Bronze
241957 22727 103 44.000 A 0.000 A 630 0.00 0.00 0 0.00 630-Beige
241962 22728 103 44.000 A 0.000 A 630 0.00 0.00 0 0.00 630-Beige
241967 23571 103 44.000 A 0.000 A 630 0.00 0.00 0 0.00 630-Beige
215734 21970 105 18.000 A 0.000 A 705 0.00 0.00 0 0.00 705-Navy
225326 22727 105 44.000 A 0.000 A 700 0.00 0.00 0 0.00 700-Royal Blue
225357 22728 105 44.000 A 0.000 A 700 0.00 0.00 0 0.00 700-Royal Blue
237814 23571 105 44.000 A 0.000 A 700 0.00 0.00 0 0.00 700-Royal Blue
215735 21970 110 18.000 A 0.000 A 790 0.00 0.00 0 0.00 790-Lavender
225327 22727 110 44.000 A 0.000 A 705 0.00 0.00 0 0.00 705-Navy
225358 22728 110 44.000 A 0.000 A 705 0.00 0.00 0 0.00 705-Navy
237815 23571 110 44.000 A 0.000 A 705 0.00 0.00 0 0.00 705-Navy
225364 22728 112 44.000 A 0.000 A 715 0.00 0.00 0 0.00 715-Sky Blue
242136 21970 112 18.000 A 0.000 A 710 0.00 0.00 0 0.00 710-Cobalt Blue
225333 22727 113 44.000 A 0.000 A 715 0.00 0.00 0 0.00 715-Sky Blue
237821 23571 113 44.000 A 0.000 A 715 0.00 0.00 0 0.00 715-Sky Blue
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
225328 22727 115 44.000 A 0.000 A 790 0.00 0.00 0 0.00 790-Lavender
225359 22728 115 44.000 A 0.000 A 790 0.00 0.00 0 0.00 790-Lavender
237816 23571 115 44.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
225329 22727 120 44.000 A 0.000 A 800 0.00 0.00 0 0.00 800-Industrial Grey
225360 22728 120 44.000 A 0.000 A 800 0.00 0.00 0 0.00 800-Industrial Grey
237817 23571 120 44.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
225330 22727 125 44.000 A 0.000 A 805 0.00 0.00 0 0.00 805-Charcoal Granite
225361 22728 125 44.000 A 0.000 A 805 0.00 0.00 0 0.00 805-Charcoal Granite
237818 23571 125 44.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
241958 22727 128 44.000 A 0.000 A 815 0.00 0.00 0 0.00 815-Light Grey
241963 22728 128 44.000 A 0.000 A 815 0.00 0.00 0 0.00 815-Light Grey
241968 23571 128 44.000 A 0.000 A 815 0.00 0.00 0 0.00 815-Light Grey