SELECT 
  b.variant_name, 
  a.* 
FROM 
  cscart_product_option_variants AS a 
  LEFT JOIN cscart_product_option_variants_descriptions AS b ON b.variant_id = a.variant_id 
  AND b.lang_code = 'en' 
WHERE 
  1 
  AND a.option_id IN (191, 86, 95, 96, 97, 98, 88, 117) 
  AND a.status = 'A' 
ORDER BY 
  a.position, 
  a.variant_id

Query time 0.00273

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "336.81"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "186.00"
      },
      "nested_loop": [
        {
          "table": {
            "table_name": "a",
            "access_type": "range",
            "possible_keys": [
              "status",
              "option_id",
              "option_id_2"
            ],
            "key": "option_id",
            "used_key_parts": [
              "option_id",
              "status"
            ],
            "key_length": "6",
            "rows_examined_per_scan": 186,
            "rows_produced_per_join": 186,
            "filtered": "100.00",
            "index_condition": "((`cscartdb`.`a`.`option_id` in (191,86,95,96,97,98,88,117)) and (`cscartdb`.`a`.`status` = 'A'))",
            "cost_info": {
              "read_cost": "67.11",
              "eval_cost": "18.60",
              "prefix_cost": "85.71",
              "data_read_per_join": "8K"
            },
            "used_columns": [
              "variant_id",
              "option_id",
              "position",
              "modifier",
              "modifier_type",
              "weight_modifier",
              "weight_modifier_type",
              "point_modifier",
              "point_modifier_type",
              "status",
              "note_required"
            ]
          }
        },
        {
          "table": {
            "table_name": "b",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "variant_id",
              "lang_code"
            ],
            "key_length": "9",
            "ref": [
              "cscartdb.a.variant_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 186,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "46.50",
              "eval_cost": "18.60",
              "prefix_cost": "150.81",
              "data_read_per_join": "142K"
            },
            "used_columns": [
              "variant_id",
              "lang_code",
              "variant_name"
            ]
          }
        }
      ]
    }
  }
}

Result

variant_name variant_id option_id position modifier modifier_type weight_modifier weight_modifier_type point_modifier point_modifier_type status note_required
None 2652 97 0 0.000 A 0.000 A 0.000 A A
None 2744 98 0 0.000 A 0.000 A 0.000 A A
No 3299 117 0 0.000 A 0.000 A 0.000 A A
Kreature Orange 2517 96 1 0.000 A 0.000 A 0.000 A A
Kreature Orange 2698 97 1 4.990 A 0.000 A 0.000 A A
Kreature Orange 2767 98 1 4.990 A 0.000 A 0.000 A A
Kreature Orange 2943 95 1 0.000 A 0.000 A 0.000 A A
No 3251 88 1 0.000 A 0.000 A 0.000 A A
Kreature Orange 3327 117 1 7.990 A 0.000 A 0.000 A A
Small 7346 191 1 0.000 A 0.000 A 0.000 A A
Super soft 7624 86 1 0.000 A 0.000 A 0.000 A A
Brilliant Yellow 2516 96 2 0.000 A 0.000 A 0.000 A A
Brilliant Yellow 2697 97 2 4.990 A 0.000 A 0.000 A A
Brilliant Yellow 2766 98 2 4.990 A 0.000 A 0.000 A A
Brilliant Yellow 2931 95 2 0.000 A 0.000 A 0.000 A A
Yes 3252 88 2 7.990 A 0.000 A 0.000 A A
Brilliant Yellow 3328 117 2 7.990 A 0.000 A 0.000 A A
Medium 7347 191 2 40.000 A 0.000 A 0.000 A A
Classic (Recommended) 7625 86 2 0.000 A 0.000 A 0.000 A A
Sparkle White 2514 96 3 0.000 A 0.000 A 0.000 A A
Sparkle White 2696 97 3 4.990 A 0.000 A 0.000 A A
Sparkle White 2765 98 3 4.990 A 0.000 A 0.000 A A
Sparkle White 2932 95 3 0.000 A 0.000 A 0.000 A A
Sparkle White 3341 117 3 7.990 A 0.000 A 0.000 A A
Large 7348 191 3 87.000 A 0.000 A 0.000 A A
Extra Firm 7626 86 3 0.000 A 0.000 A 0.000 A A
Blood Red 2515 96 4 0.000 A 0.000 A 0.000 A A
Blood Red 2695 97 4 4.990 A 0.000 A 0.000 A A
Blood Red 2764 98 4 4.990 A 0.000 A 0.000 A A
Blood Red 2933 95 4 0.000 A 0.000 A 0.000 A A
Blood Red 3340 117 4 7.990 A 0.000 A 0.000 A A
XL 7349 191 4 167.000 A 0.000 A 0.000 A A
Burnt Orange 2518 96 5 0.000 A 0.000 A 0.000 A A
Burnt Orange 2694 97 5 4.990 A 0.000 A 0.000 A A
Burnt Orange 2763 98 5 4.990 A 0.000 A 0.000 A A
Burnt Orange 2934 95 5 0.000 A 0.000 A 0.000 A A
Burnt Orange 3339 117 5 7.990 A 0.000 A 0.000 A A
XXL 7350 191 5 233.000 A 0.000 A 0.000 A A
Kreature Purple 2519 96 6 0.000 A 0.000 A 0.000 A A
Kreature Purple 2693 97 6 4.990 A 0.000 A 0.000 A A
Kreature Purple 2762 98 6 4.990 A 0.000 A 0.000 A A
Kreature Purple 2935 95 6 0.000 A 0.000 A 0.000 A A
Kreature Purple 3338 117 6 7.990 A 0.000 A 0.000 A A
Deep Violet 2520 96 7 0.000 A 0.000 A 0.000 A A
Deep Violet 2692 97 7 4.990 A 0.000 A 0.000 A A
Deep Violet 2761 98 7 4.990 A 0.000 A 0.000 A A
Deep Violet 2936 95 7 0.000 A 0.000 A 0.000 A A
Deep Violet 3337 117 7 7.990 A 0.000 A 0.000 A A
Bubble Gum Pink 2521 96 8 0.000 A 0.000 A 0.000 A A
Bubble Gum Pink 2691 97 8 4.990 A 0.000 A 0.000 A A
Bubble Gum Pink 2760 98 8 4.990 A 0.000 A 0.000 A A
Bubble Gum Pink 2937 95 8 0.000 A 0.000 A 0.000 A A
Bubble Gum Pink 3336 117 8 7.990 A 0.000 A 0.000 A A
Dark Rose 2522 96 9 0.000 A 0.000 A 0.000 A A
Dark Rose 2690 97 9 4.990 A 0.000 A 0.000 A A
Dark Rose 2759 98 9 4.990 A 0.000 A 0.000 A A
Dark Rose 2938 95 9 0.000 A 0.000 A 0.000 A A
Dark Rose 3323 117 9 7.990 A 0.000 A 0.000 A A
Metallic Silver 2523 96 10 0.000 A 0.000 A 0.000 A A
Metallic Silver 2689 97 10 4.990 A 0.000 A 0.000 A A
Metallic Silver 2758 98 10 4.990 A 0.000 A 0.000 A A
Metallic Silver 2939 95 10 0.000 A 0.000 A 0.000 A A
Metallic Silver 3334 117 10 7.990 A 0.000 A 0.000 A A
Chartreuse 2524 96 11 0.000 A 0.000 A 0.000 A A
Chartreuse 2688 97 11 4.990 A 0.000 A 0.000 A A
Chartreuse 2745 98 11 4.990 A 0.000 A 0.000 A A
Chartreuse 2940 95 11 0.000 A 0.000 A 0.000 A A
Chartreuse 3333 117 11 7.990 A 0.000 A 0.000 A A
Swamp Green 2525 96 12 0.000 A 0.000 A 0.000 A A
Swamp Green 2687 97 12 4.990 A 0.000 A 0.000 A A
Swamp Green 2756 98 12 4.990 A 0.000 A 0.000 A A
Swamp Green 2941 95 12 0.000 A 0.000 A 0.000 A A
Swamp Green 3332 117 12 7.990 A 0.000 A 0.000 A A
Shimmer Gold 2526 96 13 0.000 A 0.000 A 0.000 A A
Shimmer Gold 2686 97 13 4.990 A 0.000 A 0.000 A A
Shimmer Gold 2755 98 13 4.990 A 0.000 A 0.000 A A
Shimmer Gold 2942 95 13 0.000 A 0.000 A 0.000 A A
Shimmer Gold 3331 117 13 7.990 A 0.000 A 0.000 A A
Bright Cherry 2527 96 14 0.000 A 0.000 A 0.000 A A
Bright Cherry 2685 97 14 4.990 A 0.000 A 0.000 A A
Bright Cherry 2754 98 14 4.990 A 0.000 A 0.000 A A
Bright Cherry 2944 95 14 0.000 A 0.000 A 0.000 A A
Bright Cherry 3330 117 14 7.990 A 0.000 A 0.000 A A
Dark Brown 2528 96 15 0.000 A 0.000 A 0.000 A A
Dark Brown 2684 97 15 4.990 A 0.000 A 0.000 A A
Dark Brown 2753 98 15 4.990 A 0.000 A 0.000 A A
Dark Brown 2945 95 15 0.000 A 0.000 A 0.000 A A
Dark Brown 3329 117 15 7.990 A 0.000 A 0.000 A A
Kreature Green 2529 96 16 0.000 A 0.000 A 0.000 A A
Kreature Green 2683 97 16 4.990 A 0.000 A 0.000 A A
Kreature Green 2752 98 16 4.990 A 0.000 A 0.000 A A
Kreature Green 2946 95 16 0.000 A 0.000 A 0.000 A A
Kreature Green 3325 117 16 7.990 A 0.000 A 0.000 A A
Sparkle Bronze 2530 96 17 0.000 A 0.000 A 0.000 A A
Sparkle Bronze 2682 97 17 4.990 A 0.000 A 0.000 A A
Sparkle Bronze 2751 98 17 4.990 A 0.000 A 0.000 A A
Sparkle Bronze 2947 95 17 0.000 A 0.000 A 0.000 A A
Sparkle Bronze 3324 117 17 7.990 A 0.000 A 0.000 A A
Deep Blue-Green 2531 96 18 0.000 A 0.000 A 0.000 A A
Deep Blue-Green 2681 97 18 4.990 A 0.000 A 0.000 A A
Deep Blue-Green 2750 98 18 4.990 A 0.000 A 0.000 A A
Deep Blue-Green 2948 95 18 0.000 A 0.000 A 0.000 A A
Deep Blue-Green 3326 117 18 7.990 A 0.000 A 0.000 A A
Ocean Blue 2532 96 19 0.000 A 0.000 A 0.000 A A
Ocean Blue 2680 97 19 4.990 A 0.000 A 0.000 A A
Ocean Blue 2749 98 19 4.990 A 0.000 A 0.000 A A
Ocean Blue 2949 95 19 0.000 A 0.000 A 0.000 A A
Ocean Blue 3335 117 19 7.990 A 0.000 A 0.000 A A
Kreature Blue 2533 96 20 0.000 A 0.000 A 0.000 A A
Kreature Blue 2679 97 20 4.990 A 0.000 A 0.000 A A
Kreature Blue 2748 98 20 4.990 A 0.000 A 0.000 A A
Kreature Blue 2950 95 20 0.000 A 0.000 A 0.000 A A
Kreature Blue 3342 117 20 7.990 A 0.000 A 0.000 A A
Inky Grey 2534 96 21 0.000 A 0.000 A 0.000 A A
Inky Grey 2678 97 21 4.990 A 0.000 A 0.000 A A
Inky Grey 2747 98 21 4.990 A 0.000 A 0.000 A A
Inky Grey 2951 95 21 0.000 A 0.000 A 0.000 A A
Inky Grey 3343 117 21 7.990 A 0.000 A 0.000 A A
Jade 2535 96 22 0.000 A 0.000 A 0.000 A A
Jade 2677 97 22 4.990 A 0.000 A 0.000 A A
Jade 2746 98 22 4.990 A 0.000 A 0.000 A A
Jade 2952 95 22 0.000 A 0.000 A 0.000 A A
Jade 3344 117 22 7.990 A 0.000 A 0.000 A A
Gray Green 2536 96 23 0.000 A 0.000 A 0.000 A A
Gray Green 2676 97 23 4.990 A 0.000 A 0.000 A A
Gray Green 2757 98 23 4.990 A 0.000 A 0.000 A A
Gray Green 2953 95 23 0.000 A 0.000 A 0.000 A A
Gray Green 3345 117 23 7.990 A 0.000 A 0.000 A A
Olive 2537 96 24 0.000 A 0.000 A 0.000 A A
Olive 2675 97 24 4.990 A 0.000 A 0.000 A A
Olive 2789 98 24 4.990 A 0.000 A 0.000 A A
Olive 2954 95 24 0.000 A 0.000 A 0.000 A A
Olive 3312 117 24 7.990 A 0.000 A 0.000 A A
Rose Gold 2538 96 25 0.000 A 0.000 A 0.000 A A
Rose Gold 2674 97 25 4.990 A 0.000 A 0.000 A A
Rose Gold 2788 98 25 4.990 A 0.000 A 0.000 A A
Rose Gold 2955 95 25 0.000 A 0.000 A 0.000 A A
Rose Gold 3301 117 25 7.990 A 0.000 A 0.000 A A
Coal Black 2539 96 26 0.000 A 0.000 A 0.000 A A
Coal Black 2673 97 26 4.990 A 0.000 A 0.000 A A
Coal Black 2787 98 26 4.990 A 0.000 A 0.000 A A
Coal Black 2956 95 26 0.000 A 0.000 A 0.000 A A
Coal Black 3302 117 26 7.990 A 0.000 A 0.000 A A
Rust 2540 96 27 0.000 A 0.000 A 0.000 A A
Rust 2672 97 27 4.990 A 0.000 A 0.000 A A
Rust 2786 98 27 4.990 A 0.000 A 0.000 A A
Rust 2957 95 27 0.000 A 0.000 A 0.000 A A
Rust 3303 117 27 7.990 A 0.000 A 0.000 A A
Copper 2541 96 28 0.000 A 0.000 A 0.000 A A
Copper 2671 97 28 4.990 A 0.000 A 0.000 A A
Copper 2785 98 28 4.990 A 0.000 A 0.000 A A
Copper 2958 95 28 0.000 A 0.000 A 0.000 A A
Copper 3304 117 28 7.990 A 0.000 A 0.000 A A
Ukon Brown 2542 96 29 0.000 A 0.000 A 0.000 A A
Ukon Brown 2670 97 29 4.990 A 0.000 A 0.000 A A
Ukon Brown 2784 98 29 4.990 A 0.000 A 0.000 A A
Ukon Brown 2959 95 29 0.000 A 0.000 A 0.000 A A
Ukon Brown 3305 117 29 7.990 A 0.000 A 0.000 A A
Valentine 2543 96 30 0.000 A 0.000 A 0.000 A A
Valentine 2669 97 30 4.990 A 0.000 A 0.000 A A
Valentine 2783 98 30 4.990 A 0.000 A 0.000 A A
Valentine 2960 95 30 0.000 A 0.000 A 0.000 A A
Valentine 3306 117 30 7.990 A 0.000 A 0.000 A A
Fire Red 2544 96 31 0.000 A 0.000 A 0.000 A A
Fire Red 2668 97 31 4.990 A 0.000 A 0.000 A A
Fire Red 2782 98 31 4.990 A 0.000 A 0.000 A A
Fire Red 2961 95 31 0.000 A 0.000 A 0.000 A A
Fire Red 3307 117 31 7.990 A 0.000 A 0.000 A A
Chocolate 2545 96 32 0.000 A 0.000 A 0.000 A A
Chocolate 2667 97 32 4.990 A 0.000 A 0.000 A A
Chocolate 2781 98 32 4.990 A 0.000 A 0.000 A A
Chocolate 2962 95 32 0.000 A 0.000 A 0.000 A A
Chocolate 3308 117 32 7.990 A 0.000 A 0.000 A A
Ruddy Gold 2546 96 33 0.000 A 0.000 A 0.000 A A
Ruddy Gold 2666 97 33 4.990 A 0.000 A 0.000 A A
Ruddy Gold 2780 98 33 4.990 A 0.000 A 0.000 A A
Ruddy Gold 2963 95 33 0.000 A 0.000 A 0.000 A A
Ruddy Gold 3309 117 33 7.990 A 0.000 A 0.000 A A
Jet Black 2547 96 34 0.000 A 0.000 A 0.000 A A
Jet Black 2665 97 34 4.990 A 0.000 A 0.000 A A
Jet Black 2768 98 34 4.990 A 0.000 A 0.000 A A
Jet Black 2964 95 34 0.000 A 0.000 A 0.000 A A
Jet Black 3310 117 34 7.990 A 0.000 A 0.000 A A
Solid White 2548 96 35 0.000 A 0.000 A 0.000 A A
Solid White 2664 97 35 4.990 A 0.000 A 0.000 A A
Solid White 2778 98 35 4.990 A 0.000 A 0.000 A A
Solid White 2965 95 35 0.000 A 0.000 A 0.000 A A
Solid White 3311 117 35 7.990 A 0.000 A 0.000 A A
Fluorescent Blue 2549 96 36 0.000 A 0.000 A 0.000 A A
Fluorescent Blue 2663 97 36 4.990 A 0.000 A 0.000 A A
Fluorescent Blue 2777 98 36 4.990 A 0.000 A 0.000 A A
Fluorescent Blue 2966 95 36 0.000 A 0.000 A 0.000 A A
Fluorescent Blue 3300 117 36 7.990 A 0.000 A 0.000 A A
Fluorescent Orange 2550 96 37 0.000 A 0.000 A 0.000 A A
Fluorescent Orange 2662 97 37 4.990 A 0.000 A 0.000 A A
Fluorescent Orange 2776 98 37 4.990 A 0.000 A 0.000 A A
Fluorescent Orange 2967 95 37 0.000 A 0.000 A 0.000 A A
Fluorescent Orange 3313 117 37 7.990 A 0.000 A 0.000 A A
Fluorescent Purple 2551 96 38 0.000 A 0.000 A 0.000 A A
Fluorescent Purple 2661 97 38 4.990 A 0.000 A 0.000 A A
Fluorescent Purple 2775 98 38 4.990 A 0.000 A 0.000 A A
Fluorescent Purple 2968 95 38 0.000 A 0.000 A 0.000 A A
Fluorescent Purple 3314 117 38 7.990 A 0.000 A 0.000 A A
Fluorescent Green 2552 96 39 0.000 A 0.000 A 0.000 A A
Fluorescent Green 2660 97 39 4.990 A 0.000 A 0.000 A A
Fluorescent Green 2774 98 39 4.990 A 0.000 A 0.000 A A
Fluorescent Green 2969 95 39 0.000 A 0.000 A 0.000 A A
Fluorescent Green 3315 117 39 7.990 A 0.000 A 0.000 A A
Red-Orange Glow 2553 96 40 7.990 A 0.000 A 0.000 A A
Red-Orange Glow 2659 97 40 7.990 A 0.000 A 0.000 A A
Red-Orange Glow 2773 98 40 7.990 A 0.000 A 0.000 A A
Red-Orange Glow 2970 95 40 7.990 A 0.000 A 0.000 A A
Red-Orange Glow 3316 117 40 7.990 A 0.000 A 0.000 A A
White-Green Glow 2554 96 41 7.990 A 0.000 A 0.000 A A
White-Green Glow 2658 97 41 7.990 A 0.000 A 0.000 A A
White-Green Glow 2772 98 41 7.990 A 0.000 A 0.000 A A
White-Green Glow 2971 95 41 7.990 A 0.000 A 0.000 A A
White-Green Glow 3317 117 41 7.990 A 0.000 A 0.000 A A
Blue Glow 2555 96 42 7.990 A 0.000 A 0.000 A A
Blue Glow 2657 97 42 7.990 A 0.000 A 0.000 A A
Blue Glow 2771 98 42 7.990 A 0.000 A 0.000 A A
Blue Glow 2972 95 42 7.990 A 0.000 A 0.000 A A
Blue Glow 3318 117 42 7.990 A 0.000 A 0.000 A A
Golden Copper Shift 2556 96 43 4.990 A 0.000 A 0.000 A A
Golden Copper Shift 2656 97 43 4.990 A 0.000 A 0.000 A A
Golden Copper Shift 2770 98 43 4.990 A 0.000 A 0.000 A A
Golden Copper Shift 2973 95 43 4.990 A 0.000 A 0.000 A A
Golden Copper Shift 3319 117 43 7.990 A 0.000 A 0.000 A A
Rusty Pink Shift 2557 96 44 4.990 A 0.000 A 0.000 A A
Rusty Pink Shift 2655 97 44 4.990 A 0.000 A 0.000 A A
Rusty Pink Shift 2769 98 44 4.990 A 0.000 A 0.000 A A
Rusty Pink Shift 2974 95 44 4.990 A 0.000 A 0.000 A A
Rusty Pink Shift 3320 117 44 7.990 A 0.000 A 0.000 A A
Blue Green Shift 2558 96 45 4.990 A 0.000 A 0.000 A A
Blue Purple Shift 2654 97 45 4.990 A 0.000 A 0.000 A A
Blue Purple Shift 2975 95 45 4.990 A 0.000 A 0.000 A A
Blue Purple Shift 3321 117 45 7.990 A 0.000 A 0.000 A A
Blue Purple Shift 2559 96 46 4.990 A 0.000 A 0.000 A A
Blue Green Shift 2653 97 46 4.990 A 0.000 A 0.000 A A
Blue Green Shift 2779 98 46 4.990 A 0.000 A 0.000 A A
Blue Green Shift 2976 95 46 4.990 A 0.000 A 0.000 A A
Blue Green Shift 3322 117 46 7.990 A 0.000 A 0.000 A A