SELECT 
  a.variant_id, 
  a.option_id, 
  a.position, 
  a.modifier, 
  a.modifier_type, 
  a.weight_modifier, 
  a.weight_modifier_type, 
  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 = 'de' 
  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 (
    690, 1107, 1258, 1254, 1255, 1259, 1149, 
    1349, 1224, 1114, 1225, 857, 1256, 1257, 
    1350, 535, 622
  ) 
  AND a.status = 'A' 
ORDER BY 
  a.position, 
  a.variant_id

Query time 0.00340

Explain
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE a range status,option_id,option_id_2 option_id 6 148 Using index condition; Using filesort
1 SIMPLE b eq_ref PRIMARY PRIMARY 9 mahm3t_cs443.a.variant_id,const 1 Using where
1 SIMPLE shared_option_variants eq_ref PRIMARY,company_id PRIMARY 7 mahm3t_cs443.a.variant_id,const 1

Result

variant_id option_id position modifier modifier_type weight_modifier weight_modifier_type variant_name
23288 1259 0 0.000 A 0.000 A Aluminium
24187 1349 0 0.000 A 0.000 A Bitte auswählen ...
14038 535 10 0.000 A 0.000 A 55x78 cm
24184 1349 10 0.000 A 0.000 A R
24188 1350 10 0.000 A 0.000 A Bitte auswählen ...
14039 535 20 0.000 A 0.000 A 55x98 cm
24185 1349 20 0.000 A 0.000 A Q
24189 1350 20 0.000 A 0.000 A R
15309 535 22 0.000 A 0.000 A 55x118 cm
14040 535 30 0.000 A 0.000 A 66x98 cm
24186 1349 30 0.000 A 0.000 A K
24190 1350 30 0.000 A 0.000 A Q
14041 535 40 0.000 A 0.000 A 66x118 cm
24191 1350 40 0.000 A 0.000 A K
14215 535 42 0.000 A 0.000 A 66x140 cm
14042 535 50 0.000 A 0.000 A 78x98 cm
23289 1259 50 0.000 A 0.000 A Weiß lackiertes Aluminium
14043 535 60 0.000 A 0.000 A 78x118 cm
14044 535 70 0.000 A 0.000 A 78x140 cm
14045 535 72 0.000 A 0.000 A 78x160 cm
14046 535 80 0.000 A 0.000 A 94x118 cm
15153 622 89 0.000 A 0.000 A 089 | 10%
14047 535 90 0.000 A 0.000 A 94x140 cm
15154 622 90 0.000 A 0.000 A 090 | 10%
15156 622 92 0.000 A 0.000 A 092 | 1%
15373 535 92 0.000 A 0.000 A 94x160 cm
14048 535 100 0.000 A 0.000 A 114x118 cm
23234 1255 101 0.000 A 0.000 A V01 | weiß
15718 690 102 0.000 A 0.000 A CK02 55x78 cm
20922 1107 102 0.000 A 0.000 A CK02 55x78 cm
22811 1224 102 0.000 A 0.000 A CK02 55x78 cm
23233 1255 102 0.000 A 0.000 A V02 | hellbeige
23235 1255 103 0.000 A 0.000 A V03 | beige
15719 690 104 0.000 A 0.000 A CK04 55x98 cm
20923 1107 104 0.000 A 0.000 A CK04 55x98 cm
21077 1114 104 0.000 A 0.000 A CK04 55x98 cm
22812 1224 104 0.000 A 0.000 A CK04 55x98 cm
23236 1255 104 0.000 A 0.000 A V04 | braunbeige
23237 1255 105 0.000 A 0.000 A V05 | hellgrau
15720 690 106 0.000 A 0.000 A CK06 55x118 cm
21078 1114 106 0.000 A 0.000 A CK06 55x118 cm
23238 1255 106 0.000 A 0.000 A V06 | dunkelgrau
14049 535 110 0.000 A 0.000 A 114x140 cm
23255 1256 110 0.000 A 0.000 A R4_ & R7_
23284 1258 110 0.000 A 0.000 A R4_ & R7_
23256 1256 111 0.000 A 0.000 A 43_ & 73_
23285 1258 111 0.000 A 0.000 A 43_ & 73_
14050 535 120 0.000 A 0.000 A 134x98 cm
23251 1256 120 0.000 A 0.000 A R6_ & R8_
23286 1258 120 0.000 A 0.000 A R6_ & R8_
23252 1256 130 0.000 A 0.000 A Q4_
23287 1258 130 0.000 A 0.000 A Q4_
23830 1225 156 0.000 A 0.000 A CK04 55x98 cm
23835 1107 156 0.000 A 0.000 A FK04 66x98 cm
17634 857 200 0.000 A 0.000 A Variante FR (Französische Steckdose)
15721 690 204 0.000 A 0.000 A FK04 66x98 cm
22814 1224 204 0.000 A 0.000 A FK04 66x98 cm
15722 690 206 0.000 A 0.000 A FK06 66x118 cm
20926 1107 206 0.000 A 0.000 A FK06 66x118 cm
21080 1114 206 0.000 A 0.000 A FK06 66x118 cm
22815 1224 206 0.000 A 0.000 A FK06 66x118 cm
22837 1225 206 0.000 A 0.000 A FK06 66x118 cm
15723 690 208 0.000 A 0.000 A FK08 66x140 cm
21081 1114 208 0.000 A 0.000 A FK08 66x140 cm
22816 1224 208 0.000 A 0.000 A FK08 66x140 cm
23831 1225 256 0.000 A 0.000 A FK08 66x140 cm
15724 690 304 0.000 A 0.000 A MK04 78x98 cm
20928 1107 304 0.000 A 0.000 A MK04 78x98 cm
21082 1114 304 0.000 A 0.000 A MK04 78x98 cm
22817 1224 304 0.000 A 0.000 A MK04 78x98 cm
22839 1225 304 0.000 A 0.000 A MK04 78x98 cm
15725 690 306 0.000 A 0.000 A MK06 78x118 cm
20929 1107 306 0.000 A 0.000 A MK06 78x118 cm
21083 1114 306 0.000 A 0.000 A MK06 78x118 cm
22818 1224 306 0.000 A 0.000 A MK06 78x118 cm
22840 1225 306 0.000 A 0.000 A MK06 78x118 cm
15726 690 308 0.000 A 0.000 A MK08 78x140 cm
20930 1107 308 0.000 A 0.000 A MK08 78x140 cm
21084 1114 308 0.000 A 0.000 A MK08 78x140 cm
22819 1224 308 0.000 A 0.000 A MK08 78x140 cm
22841 1225 308 0.000 A 0.000 A MK08 78x140 cm
15727 690 310 0.000 A 0.000 A MK10 78x160 cm
20931 1107 310 0.000 A 0.000 A MK10 78x160 cm
21085 1114 310 0.000 A 0.000 A MK10 78x160 cm
22820 1224 310 0.000 A 0.000 A MK10 78x160 cm
22842 1225 310 0.000 A 0.000 A MK10 78x160 cm
15728 690 312 0.000 A 0.000 A MK12 78x180 cm
15729 690 404 0.000 A 0.000 A PK04 94x98 cm
21087 1114 404 0.000 A 0.000 A PK04 94x98 cm
15730 690 406 0.000 A 0.000 A PK06 94x118 cm
20934 1107 406 0.000 A 0.000 A PK06 94x118 cm
21088 1114 406 0.000 A 0.000 A PK06 94x118 cm
22823 1224 406 0.000 A 0.000 A PK06 94x118 cm
15731 690 408 0.000 A 0.000 A PK08 94x140 cm
20935 1107 408 0.000 A 0.000 A PK08 94x140 cm
21089 1114 408 0.000 A 0.000 A PK08 94x140 cm
22824 1224 408 0.000 A 0.000 A PK08 94x140 cm
22846 1225 408 0.000 A 0.000 A PK08 94x140 cm
15732 690 410 0.000 A 0.000 A PK10 94x160 cm
20936 1107 410 0.000 A 0.000 A PK10 94x160 cm
21090 1114 410 0.000 A 0.000 A PK10 94x160 cm
15733 690 506 0.000 A 0.000 A SK06 114x118 cm
20937 1107 506 0.000 A 0.000 A SK06 114x118 cm
21091 1114 506 0.000 A 0.000 A SK06 114x118 cm
22826 1224 506 0.000 A 0.000 A SK06 114x118 cm
23208 1254 507 0.000 A 0.000 A 5/7, 054/078, 055/078
23257 1257 507 0.000 A 0.000 A 5/7, 054/078, 055/078
15734 690 508 0.000 A 0.000 A SK08 114x140 cm
20938 1107 508 0.000 A 0.000 A SK08 114x140 cm
21092 1114 508 0.000 A 0.000 A SK08 114x140 cm
22827 1224 508 0.000 A 0.000 A SK08 114x140 cm
23209 1254 509 0.000 A 0.000 A 5/9, 054/098, 055/098
23258 1257 509 0.000 A 0.000 A 5/9, 054/098, 055/098
15735 690 510 0.000 A 0.000 A SK10 114x160 cm
23210 1254 511 0.000 A 0.000 A 5/11, 054/118, 055/118
23259 1257 511 0.000 A 0.000 A 5/11, 054/118, 055/118
23847 1114 558 0.000 A 0.000 A SK10 114x160 cm
15736 690 604 0.000 A 0.000 A UK04 134x98 cm
20940 1107 604 0.000 A 0.000 A UK04 134x98 cm
21094 1114 604 0.000 A 0.000 A UK04 134x98 cm
15737 690 608 0.000 A 0.000 A UK08 134x140 cm
20941 1107 608 0.000 A 0.000 A UK08 134x140 cm
21095 1114 608 0.000 A 0.000 A UK08 134x140 cm
23211 1254 609 0.000 A 0.000 A 6/9, 065/098, 066/098
23260 1257 609 0.000 A 0.000 A 6/9, 065/098, 066/098
15738 690 610 0.000 A 0.000 A UK10 134x160 cm
23212 1254 611 0.000 A 0.000 A 6/11, 065/118, 066/118
23261 1257 611 0.000 A 0.000 A 6/11, 065/118, 066/118
23213 1254 614 0.000 A 0.000 A 6/14, 065/140, 066/140
23262 1257 614 0.000 A 0.000 A 6/14, 065/140, 066/140
23214 1254 709 0.000 A 0.000 A 7/9, 074/098, 078/098
23263 1257 709 0.000 A 0.000 A 7/9, 074/098, 078/098
23215 1254 711 0.000 A 0.000 A 7/11, 074/118, 078/118
23264 1257 711 0.000 A 0.000 A 7/11, 074/118, 078/118
23216 1254 714 0.000 A 0.000 A 7/14, 074/140, 078/140
23265 1257 714 0.000 A 0.000 A 7/14, 074/140, 078/140
23217 1254 716 0.000 A 0.000 A 7/16, 074/160, 078/160
23266 1257 716 0.000 A 0.000 A 7/16, 074/160, 078/160
23218 1254 718 0.000 A 0.000 A 7/18, 074/180, 078/180
23267 1257 718 0.000 A 0.000 A 7/18, 074/180, 078/180
23219 1254 909 0.000 A 0.000 A 9/9, 094/098
23268 1257 909 0.000 A 0.000 A 9/9, 094/098
23220 1254 911 0.000 A 0.000 A 9/11, 094/118
23269 1257 911 0.000 A 0.000 A 9/11, 094/118
23221 1254 914 0.000 A 0.000 A 9/14, 094/140
23270 1257 914 0.000 A 0.000 A 9/14, 094/140
23222 1254 916 0.000 A 0.000 A 9/16, 094/160
23271 1257 916 0.000 A 0.000 A 9/16, 094/160
23223 1254 918 0.000 A 0.000 A 9/18, 094/180
23272 1257 918 0.000 A 0.000 A 9/18, 094/180
23224 1254 1109 0.000 A 0.000 A 11/9, 114/098
23273 1257 1109 0.000 A 0.000 A 11/9, 114/098
23225 1254 1111 0.000 A 0.000 A 11/11, 114/118
23274 1257 1111 0.000 A 0.000 A 11/11, 114/118
23226 1254 1114 0.000 A 0.000 A 11/14, 114/140
23275 1257 1114 0.000 A 0.000 A 11/14, 114/140
23227 1254 1116 0.000 A 0.000 A 11/16, 114/160
23276 1257 1116 0.000 A 0.000 A 11/16, 114/160
23228 1254 1118 0.000 A 0.000 A 11/18, 114/180
23277 1257 1118 0.000 A 0.000 A 11/18, 114/180
23229 1254 1309 0.000 A 0.000 A 13/9, 134/098
23278 1257 1309 0.000 A 0.000 A 13/9, 134/098
23230 1254 1311 0.000 A 0.000 A 13/11, 134/118
23279 1257 1311 0.000 A 0.000 A 13/11, 134/118
23231 1254 1314 0.000 A 0.000 A 13/14, 134/140
23280 1257 1314 0.000 A 0.000 A 13/14, 134/140
23232 1254 1316 0.000 A 0.000 A 13/16, 134/160
23281 1257 1316 0.000 A 0.000 A 13/16, 134/160