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 = 'vi' 
WHERE 
  1 
  AND a.option_id IN (
    1548, 1550, 856, 1444, 831, 829, 1409, 
    838, 1407, 1504, 1394, 1506, 627, 628, 
    629
  ) 
  AND a.status = 'A' 
ORDER BY 
  a.position, 
  a.variant_id

Query time 0.00387

JSON explain

{
  "query_block": {
    "select_id": 1,
    "nested_loop": [
      {
        "read_sorted_file": {
          "filesort": {
            "sort_key": "a.position, a.variant_id",
            "table": {
              "table_name": "a",
              "access_type": "range",
              "possible_keys": ["status", "option_id", "option_id_2"],
              "key": "option_id",
              "key_length": "6",
              "used_key_parts": ["option_id", "status"],
              "rows": 49,
              "filtered": 100,
              "index_condition": "a.option_id in (1548,1550,856,1444,831,829,1409,838,1407,1504,1394,1506,627,628,629) 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": ["dev_db.a.variant_id", "const"],
          "rows": 1,
          "filtered": 100,
          "attached_condition": "trigcond(b.lang_code = 'vi')"
        }
      }
    ]
  }
}

Result

variant_name variant_id option_id position modifier modifier_type weight_modifier weight_modifier_type point_modifier point_modifier_type status
Bạc hà 1076 627 0 0.000 A 0.000 A 0.000 A A
Gừng 1077 627 0 0.000 A 0.000 A 0.000 A A
Vỏ bưởi 1078 627 0 0.000 A 0.000 A 0.000 A A
Sả chanh 1079 627 0 0.000 A 0.000 A 0.000 A A
Màng Tang 1080 627 0 0.000 A 0.000 A 0.000 A A
Vỏ cam 1081 627 0 0.000 A 0.000 A 0.000 A A
Chùa dù 1082 627 0 0.000 A 0.000 A 0.000 A A
Quế 1083 627 0 0.000 A 0.000 A 0.000 A A
Bạc hà 1084 628 0 0.000 A 0.000 A 0.000 A A
Gừng 1085 628 0 0.000 A 0.000 A 0.000 A A
Vỏ bưởi 1086 628 0 0.000 A 0.000 A 0.000 A A
Sả chanh 1087 628 0 0.000 A 0.000 A 0.000 A A
Màng Tang 1088 628 0 0.000 A 0.000 A 0.000 A A
Vỏ cam 1089 628 0 0.000 A 0.000 A 0.000 A A
Chùa dù 1090 628 0 0.000 A 0.000 A 0.000 A A
Quế 1091 628 0 0.000 A 0.000 A 0.000 A A
Bạc hà 1092 629 0 0.000 A 0.000 A 0.000 A A
Gừng 1093 629 0 0.000 A 0.000 A 0.000 A A
Vỏ bưởi 1094 629 0 0.000 A 0.000 A 0.000 A A
Sả chanh 1095 629 0 0.000 A 0.000 A 0.000 A A
Màng Tang 1096 629 0 0.000 A 0.000 A 0.000 A A
Vỏ cam 1097 629 0 0.000 A 0.000 A 0.000 A A
Chùa dù 1098 629 0 0.000 A 0.000 A 0.000 A A
Quế 1099 629 0 0.000 A 0.000 A 0.000 A A
3763 1407 0 0.000 A 0.000 A 0.000 A A
3767 1409 0 0.000 A 0.000 A 0.000 A A
Miễn phí viết thông điệp trên tranh 3837 1444 0 0.000 A 0.000 A 0.000 A A
Màu hoa chủ đạo theo yêu cầu 3846 829 0 0.000 A 0.000 A 0.000 A A
Hộp quà ghi tên (MIỄN PHÍ) 3948 1506 0 0.000 A 0.000 A 0.000 A A
4032 1548 0 0.000 A 0.000 A 0.000 A A
4036 1550 0 0.000 A 0.000 A 0.000 A A
Đậm 1897 831 1 0.000 A 0.000 A 0.000 A A
Size M 1920 838 1 0.000 A 0.000 A 0.000 A A
Size S 1993 856 1 0.000 A 0.000 A 0.000 A A
Chữ ký 3730 1394 1 0.000 A 0.000 A 0.000 A A
3762 1407 1 40000.000 A 0.000 A 0.000 A A
3766 1409 1 40000.000 A 0.000 A 0.000 A A
Thêu 2 từ (giá gốc 50K, NAY MIỄN PHÍ) 3941 1504 1 0.000 A 0.000 A 0.000 A A
4031 1548 1 0.000 A 0.000 A 0.000 A A
4035 1550 1 0.000 A 0.000 A 0.000 A A
Nhạt 1898 831 2 0.000 A 0.000 A 0.000 A A
Size L 1921 838 2 100000.000 A 0.000 A 0.000 A A
Size M 1994 856 2 80000.000 A 0.000 A 0.000 A A
In hoa nét mảnh 3731 1394 2 0.000 A 0.000 A 0.000 A A
Thêu 3 - 4 từ (giá gốc 100K, NAY CHỈ 40K) 3942 1504 2 40000.000 A 0.000 A 0.000 A A
Size L 1995 856 3 230000.000 A 0.000 A 0.000 A A
In hoa nét đậm 3732 1394 3 0.000 A 0.000 A 0.000 A A
Viết tay 3733 1394 4 0.000 A 0.000 A 0.000 A A
Viết thường 3734 1394 5 0.000 A 0.000 A 0.000 A A