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 (
    22287, 21927, 23857, 23858, 23859, 23860, 
    22979, 21945, 21946, 22247
  ) 
  AND a.status = 'A' 
ORDER BY 
  a.position, 
  a.variant_id

Query time 0.00361

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": 196,
          "filtered": 100,
          "index_condition": "a.option_id in (22287,21927,23857,23858,23859,23860,22979,21945,21946,22247) 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
220110 22287 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
220140 21927 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
220223 21945 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
220320 22247 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
221104 21946 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
229197 22979 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
240507 23857 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
240536 23858 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
240559 23859 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
240582 23860 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
215418 21945 2 0.000 A 0.000 A 0.00 0.00 21927 0.00 Same as Shade
244494 21927 2 79.000 A 0.000 A M103 50.00 0.00 0 0.00 M103-Black
215419 21946 3 0.000 A 0.000 A 0.00 0.00 21927 0.00 Same as Shade
219237 22247 3 0.000 A 0.000 A 0.00 0.00 0 0.00 None
219785 22287 3 0.000 A 0.000 A FCC10 0.00 0.00 0 0.00 10" Shade
240506 23857 3 0.000 A 0.000 A 7FT 0.00 0.00 0 0.00 7' of Cord
240514 23858 3 0.000 A 0.000 A SBK 0.00 0.00 0 0.00 Standard Black
240537 23859 3 5.000 A 0.000 A SBK 0.00 0.00 0 2.10 Standard Black
240560 23860 3 30.000 A 0.000 A SBK 0.00 0.00 0 5.26 Standard Black
244550 21945 4 0.000 A 0.000 A M103 0.00 0.00 0 0.00 M103-Black
215420 21946 5 0.000 A 0.000 A 100 0.00 0.00 0 0.00 100-Black
219238 22247 5 19.000 A 0.000 A 19.00 0.00 0 0.00 LED Silver Bowl G25 - 31-4.5FG25DIM/827/SB/R
219786 22287 5 13.000 A 0.000 A FCC12 0.00 0.00 0 0.00 12" Shade
229198 22979 5 6.000 A 0.000 A UK 0.00 0.00 0 0.00 Black Socket with Knob Switch
240508 23857 5 0.000 A 0.000 A 12FT 0.00 0.00 0 0.00 12' of Cord
240515 23858 5 5.000 A 0.000 A SWH 0.00 0.00 0 0.32 Standard White
240538 23859 5 10.000 A 0.000 A SWH 0.00 0.00 0 3.18 Standard White
240561 23860 5 35.000 A 0.000 A SWH 0.00 0.00 0 7.26 Standard White
244495 21927 5 79.000 A 0.000 A M200 50.00 0.00 0 0.00 M200-White
244551 21945 6 0.000 A 0.000 A M200 0.00 0.00 0 0.00 M200-White
244552 21945 8 0.000 A 0.000 A M305 0.00 0.00 0 0.00 M305-Forest Green
215421 21946 10 0.000 A 0.000 A 105 0.00 0.00 0 0.00 105-Textured Black
219239 22247 10 13.000 A 0.000 A 13.00 0.00 0 0.00 LED Clear ST19 - 31-4.5FSST19DIM/821
219787 22287 10 24.000 A 0.000 A FCC15 0.00 0.00 0 0.00 15" Shade
229199 22979 10 6.000 A 0.000 A UP 0.00 0.00 0 0.00 Black Socket with Black Paddle Switch
240509 23857 10 0.000 A 0.000 A 20FT 0.00 0.00 0 0.00 20' of Cord
240516 23858 10 10.000 A 0.000 A CSB 0.00 0.00 0 3.66 Black Cloth
240539 23859 10 15.000 A 0.000 A CSB 0.00 0.00 0 5.70 Black Cloth
240562 23860 10 40.000 A 0.000 A CSB 0.00 0.00 0 11.46 Black Cloth
244496 21927 10 79.000 A 0.000 A M305 50.00 0.00 0 0.00 M305-Forest Green
244553 21945 10 0.000 A 0.000 A M603 0.00 0.00 0 0.00 M603-Brown
229204 22979 12 0.000 A 0.000 A US 0.00 0.00 0 0.00 Black Socket with No Switch
244554 21945 12 0.000 A 0.000 A M415 0.00 0.00 0 0.00 M415-Red
244555 21945 14 0.000 A 0.000 A M315 0.00 0.00 0 0.00 M315-Seafoam
215422 21946 15 0.000 A 0.000 A 200 0.00 0.00 0 0.00 200-White
229200 22979 15 6.000 A 0.000 A NK 0.00 0.00 0 0.00 Nickel Socket with Knob Switch
240517 23858 15 10.000 A 0.000 A SLVR 0.00 0.00 0 3.66 Silver Cloth
240540 23859 15 20.000 A 0.000 A SLVR 0.00 0.00 0 7.02 Silver Cloth
240563 23860 15 40.000 A 0.000 A SLVR 0.00 0.00 0 13.66 Silver Cloth
242973 22247 15 13.000 A 0.000 A 13.00 0.00 0 0.00 LED Amber ST19 - 31-4.5FSST19DIM/820/A
244497 21927 15 79.000 A 0.000 A M603 50.00 0.00 0 0.00 M603-Brown
244556 21945 16 0.000 A 0.000 A M803 0.00 0.00 0 0.00 M803-Dark Grey
244557 21945 18 0.000 A 0.000 A M210 0.00 0.00 0 0.00 M210-Cream
215423 21946 20 0.000 A 0.000 A 300 0.00 0.00 0 0.00 300-Dark Green
219241 22247 20 14.000 A 0.000 A 14.00 0.00 0 0.00 LED Smoky ST19 - 31-4.5FSST19DIM/840/S
229201 22979 20 6.000 A 0.000 A NP 0.00 0.00 0 0.00 Nickel Socket with Black Paddle Switch
240518 23858 20 10.000 A 0.000 A CRM 0.00 0.00 0 3.66 Creme Cloth
240541 23859 20 20.000 A 0.000 A CRM 0.00 0.00 0 7.02 Creme Cloth
240564 23860 20 40.000 A 0.000 A CRM 0.00 0.00 0 13.66 Creme Cloth
244498 21927 20 79.000 A 0.000 A M415 50.00 0.00 0 0.00 M415-Red
240526 23858 22 10.000 A 0.000 A BPNK 0.00 0.00 0 3.66 Blush Pink Cloth
240549 23859 22 25.000 A 0.000 A BPNK 0.00 0.00 0 8.98 Blush Pink Cloth
240572 23860 22 50.000 A 0.000 A BPNK 0.00 0.00 0 17.00 Blush Pink Cloth
229205 22979 23 0.000 A 0.000 A NS 0.00 0.00 0 0.00 Nickel Socket with No Switch
240535 23858 23 20.000 A 0.000 A CNF 0.00 0.00 0 10.06 Confetti Cloth
240558 23859 23 25.000 A 0.000 A CNF 0.00 0.00 0 8.43 Confetti Cloth
240581 23860 23 50.000 A 0.000 A CNF 0.00 0.00 0 16.00 Confetti Cloth
215424 21946 25 0.000 A 0.000 A 975 0.00 0.00 0 0.00 975-Galvanized
229202 22979 25 6.000 A 0.000 A BK 0.00 0.00 0 0.00 Brass Socket with Knob Switch
240519 23858 25 10.000 A 0.000 A RST 0.00 0.00 0 3.66 Rust Cloth
240542 23859 25 25.000 A 0.000 A RST 0.00 0.00 0 7.02 Rust Cloth
240565 23860 25 50.000 A 0.000 A RST 0.00 0.00 0 17.00 Rust Cloth
244499 21927 25 79.000 A 0.000 A M315 50.00 0.00 0 0.00 M315-Seafoam
215425 21946 30 0.000 A 0.000 A 605 0.00 0.00 0 0.00 605-Textured Rust
229203 22979 30 6.000 A 0.000 A BP 0.00 0.00 0 0.00 Brass Socket with Black Paddle Swtich
240520 23858 30 15.000 A 0.000 A RBS 0.00 0.00 0 6.81 Barn Red & Black Swirl Cloth
240543 23859 30 20.000 A 0.000 A RBS 0.00 0.00 0 13.00 Barn Red & Black Swirl Cloth
240566 23860 30 40.000 A 0.000 A RBS 0.00 0.00 0 13.66 Barn Red & Black Swirl Cloth
244500 21927 30 79.000 A 0.000 A M803 50.00 0.00 0 0.00 M803-Dark Grey
229206 22979 32 0.000 A 0.000 A BS 0.00 0.00 0 0.00 Brass Socket with No Switch
236928 21946 32 6.000 A 0.000 A 106 0.00 0.00 0 1.50 106-Matte Black
236929 21946 33 6.000 A 0.000 A 206 0.00 0.00 0 1.50 206-Matte White
240970 21946 33 6.000 A 0.000 A 320 0.00 0.00 0 1.50 320-Fern Green
215426 21946 35 6.000 A 0.000 A 307 0.00 0.00 0 1.50 307-Emerald Green
240521 23858 35 10.000 A 0.000 A ORG 0.00 0.00 0 3.66 Orange Cloth
240544 23859 35 20.000 A 0.000 A ORG 0.00 0.00 0 6.78 Orange Cloth
240567 23860 35 40.000 A 0.000 A ORG 0.00 0.00 0 13.26 Orange Cloth
244501 21927 35 79.000 A 0.000 A M210 50.00 0.00 0 0.00 M210-Cream
245118 21946 37 6.000 A 0.000 A 311 0.00 0.00 0 0.00 311-Jadite
215427 21946 40 6.000 A 0.000 A 370 0.00 0.00 0 1.50 370-Mint
240522 23858 40 10.000 A 0.000 A YLW 0.00 0.00 0 3.66 Buttery Yellow Cloth
240545 23859 40 42.000 A 0.000 A YLW 0.00 0.00 0 14.94 Buttery Yellow Cloth
240568 23860 40 80.000 A 0.000 A YLW 0.00 0.00 0 26.86 Buttery Yellow Cloth
215428 21946 45 6.000 A 0.000 A 380 0.00 0.00 0 1.50 380-Chartreuse
240523 23858 45 10.000 A 0.000 A NGRN 0.00 0.00 0 3.66 Neon Green Cloth
240546 23859 45 25.000 A 0.000 A NGRN 0.00 0.00 0 8.93 Neon Green Cloth
240569 23860 45 50.000 A 0.000 A NGRN 0.00 0.00 0 16.84 Neon Green Cloth
215429 21946 50 6.000 A 0.000 A 390 0.00 0.00 0 1.50 390-Teal
240524 23858 50 10.000 A 0.000 A EGRN 0.00 0.00 0 3.66 Emerald Green Cloth
240547 23859 50 25.000 A 0.000 A EGRN 0.00 0.00 0 9.06 Emerald Green Cloth
240570 23860 50 50.000 A 0.000 A EGRN 0.00 0.00 0 17.06 Emerald Green Cloth
215119 21927 55 0.000 A 0.000 A 100 0.00 0.00 0 0.00 100-Black
215430 21946 55 6.000 A 0.000 A 400 0.00 0.00 0 1.50 400-Barn Red
240525 23858 55 20.000 A 0.000 A FGRN 0.00 0.00 0 10.06 Fern Green Chevron Cloth
240548 23859 55 25.000 A 0.000 A FGRN 0.00 0.00 0 8.94 Fern Green Chevron Cloth
240571 23860 55 50.000 A 0.000 A FGRN 0.00 0.00 0 16.86 Fern Green Chevron Cloth
215120 21927 60 0.000 A 0.000 A 105 0.00 0.00 0 0.00 105-Textured Black
215431 21946 60 6.000 A 0.000 A 420 0.00 0.00 0 1.50 420-Orange
219249 22247 60 13.000 A 0.000 A 13.00 0.00 0 0.00 Lurra LED Tala Lamp - 28LURA
240971 21946 63 6.000 A 0.000 A 430 0.00 0.00 0 1.50 430-Soft Clay
215121 21927 65 0.000 A 0.000 A 200 0.00 0.00 0 0.00 200-White
215432 21946 65 6.000 A 0.000 A 470 0.00 0.00 0 1.50 470-Watermelon
219250 22247 65 15.000 A 0.000 A 15.00 0.00 0 0.00 Globe LED Tala Lamp - 28GLOB
215122 21927 70 0.000 A 0.000 A 300 0.00 0.00 0 0.00 300-Dark Green
215433 21946 70 6.000 A 0.000 A 480 0.00 0.00 0 1.50 480-Blush Pink
240527 23858 70 10.000 A 0.000 A SFM 0.00 0.00 0 3.66 Seafoam Cloth
240550 23859 70 25.000 A 0.000 A SFM 0.00 0.00 0 9.18 Seafoam Cloth
240573 23860 70 50.000 A 0.000 A SFM 0.00 0.00 0 17.26 Seafoam Cloth
215123 21927 75 0.000 A 0.000 A 975 0.00 0.00 0 0.00 975-Galvanized
215434 21946 75 6.000 A 0.000 A 490 0.00 0.00 0 1.50 490-Magenta
219252 22247 75 28.000 A 0.000 A 28.00 0.00 0 0.00 Elva LED Tala Lamp - 28ELVA
240528 23858 75 10.000 A 0.000 A SBLU 0.00 0.00 0 3.66 Sky Blue Cloth
240551 23859 75 25.000 A 0.000 A SBLU 0.00 0.00 0 8.94 Sky Blue Cloth
240574 23860 75 50.000 A 0.000 A SBLU 0.00 0.00 0 16.86 Sky Blue Cloth
215124 21927 80 0.000 A 0.000 A 605 0.00 0.00 0 0.00 605-Textured Rust
215435 21946 80 6.000 A 0.000 A 495 0.00 0.00 0 1.50 495-Sherbet Orange
219253 22247 80 90.000 A 0.000 A 90.00 0.00 0 0.00 Oval LED Tala Lamp - 28OVAL
240529 23858 80 10.000 A 0.000 A RBLU 0.00 0.00 0 3.66 Royal Blue Cloth
240552 23859 80 20.000 A 0.000 A RBLU 0.00 0.00 0 6.81 Royal Blue Cloth
240575 23860 80 40.000 A 0.000 A RBLU 0.00 0.00 0 13.31 Royal Blue Cloth
236846 21927 82 18.000 A 0.000 A 106 0.00 0.00 0 4.50 106-Matte Black
236847 21927 84 18.000 A 0.000 A 206 0.00 0.00 0 4.50 206-Matte White
215125 21927 85 18.000 A 0.000 A 307 0.00 0.00 0 4.50 307-Emerald Green
215436 21946 85 6.000 A 0.000 A 500 0.00 0.00 0 1.50 500-Buttery Yellow
219254 22247 85 90.000 A 0.000 A 90.00 0.00 0 0.00 Oblo LED Tala Lamp - 28OBLO
240530 23858 85 10.000 A 0.000 A NVY 0.00 0.00 0 3.66 Navy Cloth
240553 23859 85 42.000 A 0.000 A NVY 0.00 0.00 0 14.94 Navy Cloth
240576 23860 85 80.000 A 0.000 A NVY 0.00 0.00 0 26.86 Navy Cloth
245086 21927 86 18.000 A 0.000 A 311 0.00 0.00 0 0.00 311-Jadite
240940 21927 87 18.000 A 0.000 A 320 0.00 0.00 0 4.50 320-Fern Green
215126 21927 90 18.000 A 0.000 A 370 0.00 0.00 0 4.50 370-Mint
215437 21946 90 6.000 A 0.000 A 570 0.00 0.00 0 1.50 570-Sunflower
219255 22247 90 38.000 A 0.000 A 38.00 0.00 0 0.00 Porcelain III LED Tala Lamp - 28PORC-III
215127 21927 95 18.000 A 0.000 A 380 0.00 0.00 0 4.50 380-Chartreuse
215438 21946 95 6.000 A 0.000 A 600 0.00 0.00 0 1.50 600-Bronze
219256 22247 95 90.000 A 0.000 A 90.00 0.00 0 0.00 Noma LED Tala Lamp - 28NOMA
215128 21927 100 18.000 A 0.000 A 390 0.00 0.00 0 4.50 390-Teal
215439 21946 100 6.000 A 0.000 A 601 0.00 0.00 0 1.50 601-Chocolate
219257 22247 100 90.000 A 0.000 A 90.00 0.00 0 0.00 Enno LED Tala Lamp - 28ENNO
215129 21927 105 18.000 A 0.000 A 400 0.00 0.00 0 4.50 400-Barn Red
219258 22247 105 93.000 A 0.000 A 93.00 0.00 0 0.00 Voronoi I LED Tala Lamp - 28VORN-I
240972 21946 105 6.000 A 0.000 A 607 0.00 0.00 0 1.50 607-Taupe
215130 21927 110 18.000 A 0.000 A 420 0.00 0.00 0 4.50 420-Orange
215440 21946 110 6.000 A 0.000 A 615 0.00 0.00 0 1.50 615-Oil-Rubbed Bronze
219259 22247 110 145.000 A 0.000 A 145.00 0.00 0 0.00 Voronoi II LED Tala Lamp - 28VORN-II
240941 21927 113 18.000 A 0.000 A 430 0.00 0.00 0 4.50 430-Soft Clay
240973 21946 113 6.000 A 0.000 A 630 0.00 0.00 0 1.50 630-Beige
215131 21927 115 18.000 A 0.000 A 470 0.00 0.00 0 4.50 470-Watermelon
215441 21946 115 6.000 A 0.000 A 700 0.00 0.00 0 1.50 700-Royal Blue
215132 21927 120 18.000 A 0.000 A 480 0.00 0.00 0 4.50 480-Blush Pink
215442 21946 120 6.000 A 0.000 A 705 0.00 0.00 0 1.50 705-Navy
245119 21946 122 6.000 A 0.000 A 710 0.00 0.00 0 0.00 710-Cobalt Blue
245120 21946 123 6.000 A 0.000 A 715 0.00 0.00 0 0.00 715-Delphite Blue
215133 21927 125 18.000 A 0.000 A 490 0.00 0.00 0 4.50 490-Magenta
215443 21946 125 6.000 A 0.000 A 790 0.00 0.00 0 1.50 790-Lavender
215134 21927 130 18.000 A 0.000 A 495 0.00 0.00 0 4.50 495-Sherbet Orange
215444 21946 130 6.000 A 0.000 A 800 0.00 0.00 0 1.50 800-Industrial Grey
215135 21927 135 18.000 A 0.000 A 500 0.00 0.00 0 4.50 500-Buttery Yellow
215445 21946 135 6.000 A 0.000 A 805 0.00 0.00 0 1.50 805-Charcoal Granite
245121 21946 136 6.000 A 0.000 A 810 0.00 0.00 0 0.00 810-Graphite
240974 21946 138 6.000 A 0.000 A 815 0.00 0.00 0 1.50 815-Light Grey
215136 21927 140 18.000 A 0.000 A 570 0.00 0.00 0 4.50 570-Sunflower
215446 21946 140 36.000 A 0.000 A 995 0.00 0.00 0 9.00 995-Raw Copper
215137 21927 145 18.000 A 0.000 A 600 0.00 0.00 0 4.50 600-Bronze
215447 21946 145 36.000 A 0.000 A 996 0.00 0.00 0 9.00 996-Weathered Copper
215138 21927 150 18.000 A 0.000 A 601 0.00 0.00 0 4.50 601-Chocolate
215448 21946 150 36.000 A 0.000 A 999 0.00 0.00 0 9.00 999-Oil-Rubbed Copper
240942 21927 153 18.000 A 0.000 A 607 0.00 0.00 0 4.50 607-Taupe
215139 21927 155 18.000 A 0.000 A 615 0.00 0.00 0 4.50 615-Oil-Rubbed Bronze
215449 21946 155 41.000 A 0.000 A 997 0.00 0.00 0 9.00 997-Raw Brass
240943 21927 158 18.000 A 0.000 A 630 0.00 0.00 0 4.50 630-Beige
215140 21927 160 18.000 A 0.000 A 700 0.00 0.00 0 4.50 700-Royal Blue
215450 21946 160 41.000 A 0.000 A 998 0.00 0.00 0 9.00 998-Weathered Brass
215141 21927 165 18.000 A 0.000 A 705 0.00 0.00 0 4.50 705-Navy
245087 21927 166 18.000 A 0.000 A 710 0.00 0.00 0 0.00 710-Cobalt Blue
245088 21927 167 18.000 A 0.000 A 715 0.00 0.00 0 0.00 715-Delphite Blue
225909 21927 168 18.000 A 0.000 A 790 0.00 0.00 0 4.50 790-Lavender
215142 21927 170 18.000 A 0.000 A 800 0.00 0.00 0 4.50 800-Industrial Grey
215143 21927 175 18.000 A 0.000 A 805 0.00 0.00 0 4.50 805-Charcoal Granite
245089 21927 176 18.000 A 0.000 A 810 0.00 0.00 0 0.00 810-Graphite
240944 21927 178 18.000 A 0.000 A 815 0.00 0.00 0 4.50 815-Light Grey
215144 21927 180 160.000 A 0.000 A 995 0.00 0.00 0 40.00 995-Raw Copper
215145 21927 185 200.000 A 0.000 A 996 0.00 0.00 0 50.00 996-Weathered Copper
215146 21927 190 250.000 A 0.000 A 999 0.00 0.00 0 70.00 999-Oil-Rubbed Copper
215147 21927 195 210.000 A 0.000 A 997 0.00 0.00 0 55.00 997-Raw Brass
215148 21927 200 250.000 A 0.000 A 998 0.00 0.00 0 75.00 998-Weathered Brass