SELECT 
  c.product_id AS cur_product_id, 
  a.*, 
  b.option_name, 
  b.internal_option_name, 
  b.option_text, 
  b.description, 
  b.inner_hint, 
  b.incorrect_message, 
  b.comment 
FROM 
  cscart_product_options as a 
  LEFT JOIN cscart_product_options_descriptions as b ON a.option_id = b.option_id 
  AND b.lang_code = 'vi' 
  LEFT JOIN cscart_product_global_option_links as c ON c.option_id = a.option_id 
WHERE 
  c.product_id IN (
    23162, 4706, 225, 2237, 2510, 3860, 390, 
    33131, 400, 5455, 5425, 4717, 2963, 
    37771, 2910, 33133, 5421, 31914, 33134, 
    3786, 3469, 6089, 297, 14965, 5892, 
    46739, 46734, 27363, 3447, 16601, 6562, 
    1781
  ) 
  AND a.product_id = 0 
  AND a.status = 'A' 
ORDER BY 
  a.position

Query time 0.00530

JSON explain

{
  "query_block": {
    "select_id": 1,
    "filesort": {
      "sort_key": "a.position",
      "temporary_table": {
        "nested_loop": [
          {
            "table": {
              "table_name": "c",
              "access_type": "range",
              "possible_keys": ["PRIMARY", "product_id"],
              "key": "product_id",
              "key_length": "3",
              "used_key_parts": ["product_id"],
              "rows": 45,
              "filtered": 100,
              "index_condition": "c.product_id in (23162,4706,225,2237,2510,3860,390,33131,400,5455,5425,4717,2963,37771,2910,33133,5421,31914,33134,3786,3469,6089,297,14965,5892,46739,46734,27363,3447,16601,6562,1781)"
            }
          },
          {
            "table": {
              "table_name": "a",
              "access_type": "eq_ref",
              "possible_keys": ["PRIMARY", "c_status"],
              "key": "PRIMARY",
              "key_length": "3",
              "used_key_parts": ["option_id"],
              "ref": ["dev_db.c.option_id"],
              "rows": 1,
              "filtered": 95.83333588,
              "attached_condition": "a.product_id = 0 and a.`status` = 'A'"
            }
          },
          {
            "table": {
              "table_name": "b",
              "access_type": "eq_ref",
              "possible_keys": ["PRIMARY"],
              "key": "PRIMARY",
              "key_length": "9",
              "used_key_parts": ["option_id", "lang_code"],
              "ref": ["dev_db.c.option_id", "const"],
              "rows": 1,
              "filtered": 100,
              "attached_condition": "trigcond(b.lang_code = 'vi')"
            }
          }
        ]
      }
    }
  }
}

Result

cur_product_id option_id product_id company_id option_type regexp required multiupload allowed_extensions max_file_size missing_variants_handling status position value option_name internal_option_name option_text description inner_hint incorrect_message comment
2963 957 0 313 R Y N 0 M A 0 Lựa chọn Lựa chọn
27363 833 0 34 R Y N 0 M A 0 *Chọn kích thước tranh *Chọn kích thước tranh
27363 1405 0 34 C N N 0 M A 0 Add on Photo
27363 1406 0 34 C N N 0 M A 0 Add on Thiệp
27363 1573 0 34 C N N 0 M A 0 Màu hoa chủ đạo theo yêu cầu Màu hoa chủ đạo theo yêu cầu
27363 1622 0 34 C N N 0 M A 0 Muoiconcept_Ribbon
27363 1066 0 34 C N N 0 M A 3 Add-on Thêm đèn
225 634 0 6 S Y N 0 M A 10 1/5 - Chọn 1 trong 10 thú tròn 1/5 - Chọn 1 trong 10 thú tròn
390 643 0 108 S Y N 0 M A 10 Lựa chọn Lựa chọn
27363 1444 0 34 R N N 0 M A 10 Thông điệp 10121_00_add-on
225 635 0 6 S Y N 0 M A 20 2/5 - Chọn 1 trong 10 thú tròn 2/5 - Chọn 1 trong 10 thú tròn
27363 831 0 34 R Y N 0 M A 20 Chọn màu khung gỗ Chọn màu khung gỗ
225 636 0 6 S Y N 0 M A 30 3/5 - Chọn 1 trong 10 thú tròn 3/5 - Chọn 1 trong 10 thú tròn
225 637 0 6 S Y N 0 M A 40 4/5 - Chọn 1 trong 10 thú tròn 4/5 - Chọn 1 trong 10 thú tròn
225 638 0 6 S Y N 0 M A 50 5/5 - Chọn 1 trong 10 thú tròn 5/5 - Chọn 1 trong 10 thú tròn