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 (
    23311, 21970, 23857, 23861, 23862, 23863, 
    21971, 22659, 21933, 21934, 21935, 
    22034, 23116, 22644
  ) 
  AND a.status = 'A' 
ORDER BY 
  a.position, 
  a.variant_id

Query time 0.00224

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": 199,
          "filtered": 100,
          "index_condition": "a.option_id in (23311,21970,23857,23861,23862,23863,21971,22659,21933,21934,21935,22034,23116,22644) 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
220227 21971 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
220255 21933 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
220256 21934 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
220257 21935 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
220271 22034 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
223933 22659 0 0.000 A 0.000 A skip 0.00 0.00 0 0.00 Please Select
230828 23116 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
233239 23311 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
240605 23861 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
240628 23862 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
240651 23863 0 0.000 A 0.000 A unselected 0.00 0.00 0 0.00 Please Select
233545 22659 2 0.000 A 0.000 A NA 0.00 0.00 0 6.25 No Guard
215265 21933 3 0.000 A 0.000 A CLR 0.00 0.00 0 0.00 Clear Glass
215275 21934 3 0.000 A 0.000 A CLR 0.00 0.00 0 0.00 Clear Glass
215285 21935 3 0.000 A 0.000 A CLR 0.00 0.00 0 0.00 Clear Glass
215713 21970 3 0.000 A 0.000 A 100 0.00 0.00 0 0.00 100-Black
215745 21971 3 0.000 A 0.000 A 0.00 0.00 22952 0.00 Same as Shade
217205 22034 3 0.000 A 0.000 A 100 0.00 0.00 0 0.00 100-Black
223930 22659 3 0.000 A 0.000 A WGG 0.00 0.00 0 16.34 Wire Guard
240506 23857 3 0.000 A 0.000 A 7FT 0.00 0.00 0 0.00 7' of Cord
240583 23861 3 0.000 A 0.000 A SBK 0.00 0.00 0 0.00 Standard Black
240606 23862 3 5.000 A 0.000 A SBK 0.00 0.00 0 3.26 Standard Black
240629 23863 3 30.000 A 0.000 A SBK 0.00 0.00 0 19.60 Standard Black
215266 21933 5 10.000 A 0.000 A FST 0.00 0.00 0 1.88 Frosted Glass
215276 21934 5 10.000 A 0.000 A FST 0.00 0.00 0 1.88 Frosted Glass
215286 21935 5 10.000 A 0.000 A FST 0.00 0.00 0 1.88 Frosted Glass
215714 21970 5 0.000 A 0.000 A 105 0.00 0.00 0 0.00 105-Textured Black
215746 21971 5 0.000 A 0.000 A 100 0.00 0.00 0 0.00 100-Black
217206 22034 5 0.000 A 0.000 A 105 0.00 0.00 0 0.00 105-Textured Black
223756 22644 5 0.000 A 0.000 A 2700K 0.00 0.00 0 0.00 2700K - Warm White/Soft White
223931 22659 5 0.000 A 0.000 A CGG 0.00 0.00 0 1.50 Cast Guard
230827 23116 5 0.000 A 0.000 A LED16.8 0.00 0.00 0 0.00 16.8W LED - 1600 Lumen
233240 23311 5 0.000 A 0.000 A LAR12 0.00 0.00 0 0.00 12" Shade
240508 23857 5 0.000 A 0.000 A 12FT 0.00 0.00 0 0.00 12' of Cord
240584 23861 5 5.000 A 0.000 A SWH 0.00 0.00 0 0.32 Standard White
240607 23862 5 10.000 A 0.000 A SWH 0.00 0.00 0 3.18 Standard White
240630 23863 5 21.000 A 0.000 A SWH 0.00 0.00 0 7.26 Standard White
233605 21971 8 0.000 A 0.000 A 105 0.00 0.00 0 0.00 105-Textured Black
215267 21933 10 13.000 A 0.000 A RIB 0.00 0.00 0 3.15 Ribbed Glass
215277 21934 10 13.000 A 0.000 A RIB 0.00 0.00 0 3.15 Ribbed Glass
215287 21935 10 13.000 A 0.000 A RIB 0.00 0.00 0 3.15 Ribbed Glass
215715 21970 10 0.000 A 0.000 A 200 0.00 0.00 0 0.00 200-White
215747 21971 10 0.000 A 0.000 A 200 0.00 0.00 0 0.00 200-White
217207 22034 10 0.000 A 0.000 A 200 0.00 0.00 0 0.00 200-White
223757 22644 10 0.000 A 0.000 A 3000K 0.00 0.00 0 0.00 3000K - Neutral White
240509 23857 10 0.000 A 0.000 A 20FT 0.00 0.00 0 0.00 20' of Cord
240585 23861 10 10.000 A 0.000 A CSB 0.00 0.00 0 3.66 Black Cloth
240608 23862 10 16.000 A 0.000 A CSB 0.00 0.00 0 5.70 Black Cloth
240631 23863 10 32.000 A 0.000 A CSB 0.00 0.00 0 11.46 Black Cloth
215716 21970 15 0.000 A 0.000 A 300 0.00 0.00 0 0.00 300-Dark Green
215748 21971 15 0.000 A 0.000 A 300 0.00 0.00 0 0.00 300-Dark Green
217208 22034 15 0.000 A 0.000 A 300 0.00 0.00 0 0.00 300-Dark Green
223758 22644 15 0.000 A 0.000 A 3500K 0.00 0.00 0 0.00 3500K - Bright White
223932 22659 15 0.000 A 0.000 A TGG 0.00 0.00 0 1.50 Heavy Duty Guard
233242 23311 15 24.000 A 0.000 A LAR16 0.00 0.00 0 0.00 16" Shade
240586 23861 15 10.000 A 0.000 A SLVR 0.00 0.00 0 3.66 Silver Cloth
240609 23862 15 20.000 A 0.000 A SLVR 0.00 0.00 0 7.02 Silver Cloth
240632 23863 15 40.000 A 0.000 A SLVR 0.00 0.00 0 13.66 Silver Cloth
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
215749 21971 20 0.000 A 0.000 A 975 0.00 0.00 0 0.00 975-Galvanized
217209 22034 20 0.000 A 0.000 A 975 0.00 0.00 0 0.00 975-Galvanized
223759 22644 20 0.000 A 0.000 A 4000K 0.00 0.00 0 0.00 4000K - Cool White
240587 23861 20 10.000 A 0.000 A CRM 0.00 0.00 0 3.66 Creme Cloth
240610 23862 20 20.000 A 0.000 A CRM 0.00 0.00 0 7.02 Creme Cloth
240633 23863 20 40.000 A 0.000 A CRM 0.00 0.00 0 13.66 Creme Cloth
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
240595 23861 22 10.000 A 0.000 A BPNK 0.00 0.00 0 3.66 Blush Pink Cloth
240618 23862 22 25.000 A 0.000 A BPNK 0.00 0.00 0 8.98 Blush Pink Cloth
240641 23863 22 50.000 A 0.000 A BPNK 0.00 0.00 0 16.92 Blush Pink Cloth
240604 23861 23 29.000 A 0.000 A CNF 0.00 0.00 0 10.06 Confetti Cloth
240627 23862 23 25.000 A 0.000 A CNF 0.00 0.00 0 8.43 Confetti Cloth
240650 23863 23 45.000 A 0.000 A CNF 0.00 0.00 0 16.01 Confetti Cloth
215717 21970 24 18.000 A 0.000 A 307 0.00 0.00 0 0.00 307-Emerald Green
215750 21971 25 0.000 A 0.000 A 980 0.00 0.00 0 0.00 980-Brushed Aluminum
217210 22034 25 0.000 A 0.000 A 605 0.00 0.00 0 0.00 605-Textured Rust
240588 23861 25 10.000 A 0.000 A RST 0.00 0.00 0 3.66 Rust Cloth
240611 23862 25 25.000 A 0.000 A RST 0.00 0.00 0 8.86 Rust Cloth
240634 23863 25 50.000 A 0.000 A RST 0.00 0.00 0 16.72 Rust Cloth
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
237040 22034 27 11.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
237041 22034 28 11.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
215751 21971 30 0.000 A 0.000 A 605 0.00 0.00 0 0.00 605-Rust
217211 22034 30 11.000 A 0.000 A 307 0.00 0.00 0 0.00 307-Emerald Green
240589 23861 30 15.000 A 0.000 A RBS 0.00 0.00 0 6.81 Barn Red & Black Swirl Cloth
240612 23862 30 20.000 A 0.000 A RBS 0.00 0.00 0 7.02 Barn Red & Black Swirl
240635 23863 30 40.000 A 0.000 A RBS 0.00 0.00 0 13.66 Barn Red & Black Swirl Cloth
237140 21971 32 6.000 A 0.000 A 106 0.00 0.00 0 0.00 106-Matte Black
242752 22034 32 11.000 A 0.000 A 311 0.00 0.00 0 0.00 311-Jadite
237141 21971 33 6.000 A 0.000 A 206 0.00 0.00 0 0.00 206-Matte White
241221 22034 33 11.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
215752 21971 35 6.000 A 0.000 A 307 0.00 0.00 0 0.00 307-Emerald Green
217212 22034 35 11.000 A 0.000 A 370 0.00 0.00 0 0.00 370-Mint
240590 23861 35 10.000 A 0.000 A ORG 0.00 0.00 0 3.66 Orange Cloth
240613 23862 35 20.000 A 0.000 A ORG 0.00 0.00 0 6.78 Orange Cloth
240636 23863 35 40.000 A 0.000 A ORG 0.00 0.00 0 13.26 Orange Cloth
215721 21970 40 18.000 A 0.000 A 400 0.00 0.00 0 0.00 400-Barn Red
215753 21971 40 6.000 A 0.000 A 370 0.00 0.00 0 0.00 370-Mint
217213 22034 40 11.000 A 0.000 A 380 0.00 0.00 0 0.00 380-Chartreuse
240591 23861 40 10.000 A 0.000 A YLW 0.00 0.00 0 3.66 Buttery Yellow Cloth
240614 23862 40 45.000 A 0.000 A YLW 0.00 0.00 0 14.94 Buttery Yellow Cloth
240637 23863 40 80.000 A 0.000 A YLW 0.00 0.00 0 26.86 Buttery Yellow Cloth
215722 21970 45 18.000 A 0.000 A 420 0.00 0.00 0 0.00 420-Orange
215754 21971 45 6.000 A 0.000 A 380 0.00 0.00 0 0.00 380-Chartreuse
217214 22034 45 11.000 A 0.000 A 390 0.00 0.00 0 0.00 390-Teal
240592 23861 45 10.000 A 0.000 A NGRN 0.00 0.00 0 3.66 Neon Green Cloth
240615 23862 45 25.000 A 0.000 A NGRN 0.00 0.00 0 8.92 Neon Green Cloth
240638 23863 45 50.000 A 0.000 A NGRN 0.00 0.00 0 16.84 Neon Green Cloth
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
215755 21971 50 6.000 A 0.000 A 390 0.00 0.00 0 0.00 390-Teal
217215 22034 50 11.000 A 0.000 A 400 0.00 0.00 0 0.00 400-Barn Red
240593 23861 50 10.000 A 0.000 A EGRN 0.00 0.00 0 3.66 Emerald Green Cloth
240616 23862 50 25.000 A 0.000 A EGRN 0.00 0.00 0 9.06 Emerald Green Cloth
240639 23863 50 50.000 A 0.000 A EGRN 0.00 0.00 0 17.06 Emerald Green Cloth
215724 21970 55 18.000 A 0.000 A 480 0.00 0.00 0 0.00 480-Blush Pink
215756 21971 55 6.000 A 0.000 A 400 0.00 0.00 0 0.00 400-Barn Red
217216 22034 55 11.000 A 0.000 A 420 0.00 0.00 0 0.00 420-Orange
240594 23861 55 29.000 A 0.000 A FGRN 0.00 0.00 0 10.06 Fern Green Chevron Cloth
240617 23862 55 25.000 A 0.000 A FGRN 0.00 0.00 0 8.94 Fern Green Chevron Cloth
240640 23863 55 50.000 A 0.000 A FGRN 0.00 0.00 0 16.86 Fern Green Chevron Cloth
241222 22034 58 11.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
215757 21971 60 6.000 A 0.000 A 420 0.00 0.00 0 0.00 420-Orange
217217 22034 60 11.000 A 0.000 A 470 0.00 0.00 0 0.00 470-Watermelon
243079 23861 60 10.000 A 0.000 A SFM 0.00 0.00 0 3.66 Seafoam Cloth
243083 23862 60 25.000 A 0.000 A SFM 0.00 0.00 0 9.18 Seafoam Cloth
243087 23863 60 50.000 A 0.000 A SFM 0.00 0.00 0 17.26 Seafoam Cloth
215726 21970 65 18.000 A 0.000 A 495 0.00 0.00 0 0.00 495-Sherbet Orange
215758 21971 65 6.000 A 0.000 A 470 0.00 0.00 0 0.00 470-Watermelon
217218 22034 65 11.000 A 0.000 A 480 0.00 0.00 0 0.00 480-Blush Pink
243080 23861 65 10.000 A 0.000 A SBLUE 0.00 0.00 0 3.66 Sky Blue Cloth
243084 23862 65 25.000 A 0.000 A SBLUE 0.00 0.00 0 8.94 Sky Blue Cloth
243088 23863 65 50.000 A 0.000 A SBLU 0.00 0.00 0 16.86 Sky Blue Cloth
215727 21970 70 18.000 A 0.000 A 500 0.00 0.00 0 0.00 500-Buttery Yellow
215759 21971 70 6.000 A 0.000 A 480 0.00 0.00 0 0.00 480-Blush Pink
217219 22034 70 11.000 A 0.000 A 490 0.00 0.00 0 0.00 490-Magenta
243081 23861 70 10.000 A 0.000 A RBLU 0.00 0.00 0 3.66 Royal Blue Cloth
243085 23862 70 20.000 A 0.000 A RBLU 0.00 0.00 0 6.81 Royal Blue Cloth
243089 23863 70 40.000 A 0.000 A RBLU 0.00 0.00 0 13.31 Royal Blue Cloth
215728 21970 75 18.000 A 0.000 A 570 0.00 0.00 0 0.00 570-Sunflower
215760 21971 75 6.000 A 0.000 A 490 0.00 0.00 0 0.00 490-Magenta
217220 22034 75 11.000 A 0.000 A 495 0.00 0.00 0 0.00 495-Sherbet Orange
243082 23861 75 10.000 A 0.000 A NVY 0.00 0.00 0 3.66 Navy Cloth
243086 23862 75 45.000 A 0.000 A NVY 0.00 0.00 0 14.94 Navy Cloth
243090 23863 75 80.000 A 0.000 A NVY 0.00 0.00 0 26.86 Navy Cloth
215729 21970 80 18.000 A 0.000 A 600 0.00 0.00 0 0.00 600-Bronze
215761 21971 80 6.000 A 0.000 A 495 0.00 0.00 0 0.00 495-Sherbet Orange
217221 22034 80 11.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
215762 21971 85 6.000 A 0.000 A 500 0.00 0.00 0 0.00 500-Buttery Yellow
217222 22034 85 11.000 A 0.000 A 570 0.00 0.00 0 0.00 570-Sunflower
215763 21971 90 6.000 A 0.000 A 570 0.00 0.00 0 0.00 570-Sunflower
217223 22034 90 11.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
215764 21971 95 6.000 A 0.000 A 600 0.00 0.00 0 0.00 600-Bronze
217224 22034 95 11.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
241223 22034 98 11.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
215765 21971 100 6.000 A 0.000 A 601 0.00 0.00 0 0.00 601-Chocolate
217225 22034 100 11.000 A 0.000 A 615 0.00 0.00 0 0.00 615-Oil-Rubbed Bronze
241224 22034 103 11.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
215766 21971 105 6.000 A 0.000 A 615 0.00 0.00 0 0.00 615-Oil-Rubbed Bronze
217226 22034 105 11.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
215767 21971 110 6.000 A 0.000 A 700 0.00 0.00 0 0.00 700-Royal Blue
217227 22034 110 11.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
242753 22034 112 11.000 A 0.000 A 710 0.00 0.00 0 0.00 710-Cobalt Blue
242137 21970 113 18.000 A 0.000 A 715 0.00 0.00 0 0.00 715-Delphite Blue
242754 22034 114 11.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
215768 21971 115 6.000 A 0.000 A 705 0.00 0.00 0 0.00 705-Navy
217228 22034 115 11.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
215769 21971 120 6.000 A 0.000 A 790 0.00 0.00 0 0.00 790-Lavender
217229 22034 120 11.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
215770 21971 125 6.000 A 0.000 A 800 0.00 0.00 0 0.00 800-Industrial Grey
217230 22034 125 11.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
242755 22034 127 11.000 A 0.000 A 810 0.00 0.00 0 0.00 810-Graphite
241225 22034 128 11.000 A 0.000 A 815 0.00 0.00 0 0.00 815-Light Grey
215771 21971 130 6.000 A 0.000 A 805 0.00 0.00 0 0.00 805-Charcoal Granite
215772 21971 135 6.000 A 0.000 A 355 0.00 0.00 0 0.00 355-Jadite
215773 21971 140 11.000 A 0.000 A 750 0.00 0.00 0 0.00 750-Cobalt Blue
215774 21971 145 11.000 A 0.000 A 765 0.00 0.00 0 0.00 765-Delphite Blue
215775 21971 150 11.000 A 0.000 A 850 0.00 0.00 0 0.00 850-Graphite