SELECT 
  cscart_dosiin_posts.*, 
  cscart_dosiin_post_descriptions.*, 
  cscart_seo_names.name as seo_name, 
  cscart_seo_names.path as seo_path 
FROM 
  cscart_dosiin_posts 
  LEFT JOIN cscart_dosiin_post_categories ON cscart_dosiin_post_categories.post_id = cscart_dosiin_posts.post_id 
  LEFT JOIN cscart_dosiin_categories ON cscart_dosiin_categories.category_id = cscart_dosiin_post_categories.category_id 
  LEFT JOIN cscart_dosiin_post_descriptions ON cscart_dosiin_posts.post_id = cscart_dosiin_post_descriptions.post_id 
  AND cscart_dosiin_post_descriptions.lang_code = 'vi' 
  LEFT JOIN cscart_seo_names ON cscart_seo_names.object_id = cscart_dosiin_posts.post_id 
  AND cscart_seo_names.type = 'b' 
  AND cscart_seo_names.dispatch = '' 
  AND cscart_seo_names.lang_code = 'vi' 
WHERE 
  cscart_dosiin_posts.post_id = 65 
  AND (
    cscart_dosiin_categories.usergroup_ids = '' 
    OR FIND_IN_SET(
      0, cscart_dosiin_categories.usergroup_ids
    ) 
    OR FIND_IN_SET(
      1, cscart_dosiin_categories.usergroup_ids
    )
  ) 
  AND (
    cscart_dosiin_posts.usergroup_ids = '' 
    OR FIND_IN_SET(
      0, cscart_dosiin_posts.usergroup_ids
    ) 
    OR FIND_IN_SET(
      1, cscart_dosiin_posts.usergroup_ids
    )
  ) 
  AND cscart_dosiin_categories.status IN ('A', 'H') 
  AND cscart_dosiin_posts.status IN ('A', 'H')

Query time 0.00181

JSON explain

{
  "query_block": {
    "select_id": 1,
    "nested_loop": [
      {
        "table": {
          "table_name": "cscart_dosiin_posts",
          "access_type": "const",
          "possible_keys": ["PRIMARY", "status"],
          "key": "PRIMARY",
          "key_length": "3",
          "used_key_parts": ["post_id"],
          "ref": ["const"],
          "rows": 1,
          "filtered": 100
        }
      },
      {
        "table": {
          "table_name": "cscart_dosiin_post_descriptions",
          "access_type": "const",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "9",
          "used_key_parts": ["post_id", "lang_code"],
          "ref": ["const", "const"],
          "rows": 1,
          "filtered": 100
        }
      },
      {
        "table": {
          "table_name": "cscart_dosiin_post_categories",
          "access_type": "ref",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "3",
          "used_key_parts": ["post_id"],
          "ref": ["const"],
          "rows": 1,
          "filtered": 100,
          "using_index": true
        }
      },
      {
        "table": {
          "table_name": "cscart_dosiin_categories",
          "access_type": "eq_ref",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "3",
          "used_key_parts": ["category_id"],
          "ref": ["dev_db.cscart_dosiin_post_categories.category_id"],
          "rows": 1,
          "filtered": 100,
          "attached_condition": "(cscart_dosiin_categories.usergroup_ids = '' or find_in_set(0,cscart_dosiin_categories.usergroup_ids) or find_in_set(1,cscart_dosiin_categories.usergroup_ids)) and cscart_dosiin_categories.`status` in ('A','H')"
        }
      },
      {
        "table": {
          "table_name": "cscart_seo_names",
          "access_type": "ref",
          "possible_keys": ["PRIMARY", "dispatch"],
          "key": "PRIMARY",
          "key_length": "206",
          "used_key_parts": ["object_id", "type", "dispatch", "lang_code"],
          "ref": ["const", "const", "const", "const"],
          "rows": 1,
          "filtered": 100,
          "attached_condition": "trigcond(cscart_seo_names.`type` = 'b' and cscart_seo_names.dispatch = '' and cscart_seo_names.lang_code = 'vi')"
        }
      }
    ]
  }
}

Result

post_id date timestamp separate status localization image_id company_id discussion_type author is_sent sent_timestamp featured usergroup_ids use_avail_period avail_from_timestamp avail_till_timestamp type total_view vote_up name short_description description lang_code page_title post_h2 post_h3 meta_description meta_keywords seo_name seo_path
65 1676950740 1676950740 N A 0 519 D Nguyet N 0 N 0 N 0 0 R 367 2136 Tuyệt Vời!!! CHUS Có Giao Diện Trang Chủ Mới - Thân Thiện & Hấp Dẫn Hơn <span style="font-weight: 400;">Chúng tôi thiết kế lại trang chủ một lần nữa. Vì sao vậy?</span> <p><span style="font-weight: 400;">Chúng tôi thiết kế lại trang chủ một lần nữa. Vì sao vậy?</span></p> <h2><span style="font-weight: bold;">1. Đem đến sự độc đáo và khác biệt với các nền tảng thương mại điện tử khác</span></h2> <p><span style="font-weight: 400;">Mục tiêu của CHUS là đem đến lượng truy cập bền vững cho các thương hiệu chất hợp tác cùng chúng tôi, những người tập trung vào nâng cao tay nghề và chất lượng sản phẩm. </span></p> <p><span style="font-weight: 400;">CHUS nhận thấy rằng, hầu hết những khách hàng đầu tiên tới với CHUS thường KHÔNG BIẾT mình muốn mua gì và nên mua gì. Điều này khác với các khách hàng của các sàn thương mại điện tử khác. Do đó, chúng tôi cải tiến trang chủ của CHUS để khách hàng có thể “chơi" cùng nó.</span></p> <p><span style="font-weight: 400;"><img src="https://chus.vn/images/Blog/Chus%20New%20Homepage/homepage%2C%20people%20buys.png?1676985719821" alt="" width="1425" height="891" /></span></p> <p><span style="font-weight: 400;">Bạn có thể thấy các mục rất khác biệt:</span></p> <ul> <li style="font-weight: 400;" aria-level="1"><span style="font-weight: 400;">Mọi người đang mua gì (Được cập nhật theo thời gian thực)</span></li> <li style="font-weight: 400;" aria-level="1"><span style="font-weight: 400;">Thương hiệu chất được yêu thích</span></li> <li style="font-weight: 400;" aria-level="1"><span style="font-weight: 400;">Sản phẩm thịnh hành</span></li> </ul> <p><span style="font-weight: 400;">Chúng sẽ cung cấp những góc nhìn khác nhau và đem đến gợi ý và trải nghiệm mua sắm tốt hơn cho khách hàng.</span></p> <h2><span style="font-weight: bold;">2. Tương tác hai chiều giữa thương hiệu chất và khách hàng</span></h2> <p><span style="font-weight: 400;">Các bài đánh giá trên trang chủ được cập nhật theo thời gian thực để khách hàng có thể dễ dàng xem những người mua khác nghĩ gì về sản phẩm này trước khi nhấp vào mua sắm sản phẩm đó.</span></p> <p><span style="font-weight: 400;">CHUS cũng mở chuyên mục “CHUS nói bạn nghe" để các thương hiệu chất và CHUS chia sẻ các thông tin hữu ích cũng như các sự kiện OFFLINE thú vị. Chúng tôi sẽ thu thập các thông tin từ các thương hiệu chất hàng tháng cho chuyên mục này.</span></p> <p><img src="https://chus.vn/images/Blog/Chus%20New%20Homepage/Chus%20News.png?1676985742887" alt="" width="1425" height="891" /></p> <p><span style="font-weight: 400;">Giờ thì sao không vui một chút với trang chủ mới của CHUS nhỉ?!</span></p> <p><span style="font-weight: 400;">CHUS đảm bảo bạn sẽ cảm thấy vô cùng thích thú, thoải mái và hơn hết là gắn kết hơn giữa người mua và người bán có tâm.</span></p> vi Chúng tôi thiết kế lại trang chủ một lần nữa. Vì sao vậy? trang chủ mới, chusvn trang-chu-moi 6