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 = 261 
  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.00137

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
261 1713882900 1713882900 N A 0 519 D Nghi N 0 N 0 N 0 0 R 262 275 Cập nhật nóng hổi Cuộc thi ý tưởng cho sự kiện "Cà Phê Sữa" cùng CHUS! <span style="font-weight: 400;">Cuộc thi sáng tạo ý tưởng cho sự kiện “Cà Phê Sữa” đang trong giai đoạn gấp rút! Đã có những đội thi nào lọt vào vòng trong? Cập nhật ngay cùng CHUS. </span> <p><em><span style="font-weight: 400;">Từ sau khi mở ra, cuộc thi sáng tạo ý tưởng cho sự kiện "Cà phê sữa" đã thu hút sự quan tâm và tinh thần sáng tạo từ cộng đồng sinh viên cũng như những ai đam mê cà phê Việt. <a href="https://chus.vn/?sl=vi" target="_blank" rel="noopener">CHUS</a> rất bất ngờ và hứng khởi trước sự hưởng ứng nhiệt tình này từ các bạn trẻ tài năng và đặc biệt là có tình yêu lớn với <strong><a href="https://chus.vn/ca-phe-vi/" target="_blank" rel="noopener">cà phê Việt</a></strong>.   </span> </em></p> <h2>Liệu ai sẽ là người chiến thắng với ý tưởng sự kiện độc đáo?</h2> <p>Gần 100 đơn đăng ký từ khắp cả nước đã được gửi về hòm thư của BTC để tham gia cuộc thi sáng tạo ý tưởng cho "Cà Phê Sữa" chỉ sau 2 tuần thông báo. CHUS team vô cùng ấn tượng với tài năng và sự sáng tạo không giới hạn được thể hiện qua từng bài thi dự thi.<br /><br />Trải qua nhiều ngày tuyển chọn kỹ lưỡng, 14 đội thi xuất sắc nhất đã được lựa chọn để bước vào vòng thẩm định. Tại đây, các ý tưởng sẽ được đánh giá chi tiết về tính khả thi và mức độ sáng tạo.</p> <p><img style="display: block; margin-left: auto; margin-right: auto;" src="https://chus.vn/images/Blog/C%C3%80%20PH%C3%8A%20S%E1%BB%AEA/Screen%20Shot%202024-04-23%20at%2018.04.36.png?1713870334695" alt="cà phê sữa" width="1000" height="561" /></p> <p><img style="display: block; margin-left: auto; margin-right: auto;" src="https://chus.vn/images/Blog/C%C3%80%20PH%C3%8A%20S%E1%BB%AEA/Screen%20Shot%202024-04-23%20at%2018.04.03.png?1713870368552" alt="bạc xỉu, cà phê sữa, chusvn" width="1000" height="564" /><br /><br />Hai đội thi nổi bật nhất là <strong>"Cà Hê"</strong> và <strong>"Bạc Xỉu"</strong> đã thu hút sự chú ý bởi cách tiếp cận đề bài độc đáo, sự sáng tạo bùng nổ và khả năng thực tiễn cao. Nhờ có kế hoạch rõ ràng và thuyết phục, hai đội thi này đã xuất sắc tiến vào vòng cuối cùng - Vòng thuyết trình trực tiếp với Team Leader của CHUS.</p> <p><span style="font-weight: 400;"><img style="display: block; margin-left: auto; margin-right: auto;" src="https://chus.vn/images/Blog/caphesua%20update/c%E1%BA%A3%20ph%C3%AA%20s%E1%BB%AFa%20event%20update.jpg?1713867049607" alt="cà phê sữa, cà phê, milk coffee, cà phê Việt Nam, Vietnamese coffee, event, sự kiện" width="893" height="719" /></span></p> <div style="text-align: center;"><em>Đội dự thi lọt vào vòng thuyết trình của cuộc thi sáng tạo ý tưởng cho "Cà Phê Sữa" </em></div> <div style="text-align: center;"> </div> <div style="text-align: center;"><span style="font-weight: 400;">✰✰✰------✰✰✰</span></div> <h2><strong>Thông tin về cuộc thi sáng tạo ý tưởng cho sự kiện “Cà Phê Sữa”  </strong></h2> <p><span style="font-weight: 400;">“Cà Phê Sữa” sự kiện offline lấy chủ đề xoay quanh cà phê sữa - một trong những thức uống đặc trưng của ẩm thực Việt và văn hóa thưởng thức cà phê của người Việt. Qua đó tôn vinh sự giàu mạnh của cà phê Việt Nam. </span></p> <p><span style="font-weight: 400;">Người dự thi sẽ phát triển một bản kế hoạch ý tưởng cho sự kiện “Cà Phê Sữa” của CHUS theo hình thức thật mới lạ - khác biệt - sáng tạo! Kèm theo đó là kế hoạch truyền thông để tiếp cận những người yêu cà phê tại Việt Nam.</span><span style="font-weight: 400;"></span></p> <p style="text-align: center;"><img src="https://chus.vn/images/Blog/CAPHESUA%20EVENT/1_coffee%2C%20ca%CC%80%20phe%CC%82%2C%20su%CC%9B%CC%A3%20kie%CC%A3%CC%82n%2C%20event%2C%20ca%CC%80%20phe%CC%82%20Vie%CC%A3%CC%82t%20Nam%2C%20ca%CC%80%20phe%CC%82%20su%CC%9B%CC%83a%2C%20Vietnamese%20coffee.jpg?1711998498519" alt="cà phê sữa, coffee, vietnamese coffee, cà phê Việt Nam" /></p> <p><span style="font-weight: 400;">Bạn có thể tham khảo thêm thông tin cũng như cơ cấu giải thưởng rõ hơn tại: </span><em><a href="https://chus.vn/cuoc-thi-sang-tao-y-tuong-ca-phe-sua-event/" target="_blank" rel="noopener"><span style="font-weight: 400;">Cuộc thi Sáng tạo ý tưởng Sự kiện “CÀ PHÊ SỮA"</span></a></em></p> <p><span style="font-weight: 400;">Hãy cùng đón chờ và ủng hộ những bước tiến mới của cuộc thi cùng CHUS nhé.</span></p> <div style="text-align: center;"><span style="font-weight: 400;">✰✰✰------✰✰✰</span> </div> vi Cập nhật cùng CHUS: Cuộc thi ý tưởng cho sự kiện “Cà Phê Sữa” Cuộc thi sáng tạo ý tưởng cho sự kiện “Cà Phê Sữa” đang trong giai đoạn gấp rút! Đã có những đội thi nào lọt vào vòng trong? Cập nhật ngay cùng CHUS. sáng, cuộc, tưởng, kiện, chus, việt, những, cũng cap-nhat-cung-chus-cuoc-thi-y-tuong-cho-su-kien-ca-phe-sua 6