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 (
    1542, 1585, 831, 858, 1453, 829, 1408, 
    830, 1444, 1410, 1405, 1455, 1066, 1454, 
    1413, 1415
  ) 
  AND a.status = 'A' 
ORDER BY 
  a.position, 
  a.variant_id

Query time 0.00781

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": 29,
              "filtered": 100,
              "index_condition": "a.option_id in (1542,1585,831,858,1453,829,1408,830,1444,1410,1405,1455,1066,1454,1413,1415) 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
2562 1066 0 0.000 A 0.000 A 0.000 A A
3759 1405 0 0.000 A 0.000 A 0.000 A A
3765 1408 0 0.000 A 0.000 A 0.000 A A
3769 1410 0 0.000 A 0.000 A 0.000 A A
3775 1413 0 0.000 A 0.000 A 0.000 A A
3779 1415 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
Miễn phí thông điệp trên tranh 3845 1453 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
Miễn phí thông điệp trên tranh 3847 1454 0 0.000 A 0.000 A 0.000 A A
Miễn phí thông điệp trên tranh 3848 1455 0 0.000 A 0.000 A 0.000 A A
4019 1542 0 0.000 A 0.000 A 0.000 A A
4118 1585 0 0.000 A 0.000 A 0.000 A A
Size S 1894 830 1 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 S 1997 858 1 0.000 A 0.000 A 0.000 A A
2561 1066 1 40000.000 A 0.000 A 0.000 A A
3764 1408 1 40000.000 A 0.000 A 0.000 A A
3768 1410 1 40000.000 A 0.000 A 0.000 A A
3774 1413 1 40000.000 A 0.000 A 0.000 A A
3778 1415 1 40000.000 A 0.000 A 0.000 A A
4004 1405 1 50000.000 A 0.000 A 0.000 A A
4018 1542 1 40000.000 A 0.000 A 0.000 A A
4117 1585 1 40000.000 A 0.000 A 0.000 A A
Size M 1895 830 2 80000.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 M 1998 858 2 170000.000 A 0.000 A 0.000 A A
Size L 1896 830 3 170000.000 A 0.000 A 0.000 A A
Size L 1999 858 3 470000.000 A 0.000 A 0.000 A A