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 = 'en' 
  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 = 'en' 
WHERE 
  cscart_dosiin_posts.post_id = 532 
  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.00623

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 = 'en')"
        }
      }
    ]
  }
}

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
532 1726555800 1726555800 N A 0 519 D Nguyet Trinh N 0 N 0 N 0 0 R 127 76 Join CHUS: Support Northern Vietnam in Overcoming Typhoon Yagi Aftermath CHUS, together with the community, is joining forces to support the people of Northern Vietnam in overcoming the challenges left by Typhoon No. 3 - Yagi, reflecting a spirit of solidarity and compassion for a stronger Vietnam. <h2><strong>After fierce storms, the sky clears, but Typhoon Yagi has left deep scars across the S-shaped land. </strong></h2> <p><span style="font-weight: 400;">Like a slow-motion film, images of tilting homes, flooded fields, and entire villages swept away in a single night remain imprinted in our minds. The lives of thousands in Northern Vietnam have been completely upended, spreading anxiety and loss.</span></p> <h2><strong>Yet in the most difficult moments, human kindness shines the brightest.</strong></h2> <p><strong><span style="font-weight: 400;"><img src="https://chus.vn/images/Blog/Chung%20tay%20%E1%BB%A7ng%20h%E1%BB%99%20%C4%91%E1%BB%93ng%20b%C3%A0o%20l%C5%A9%20l%E1%BB%A5t%20Yagi%202024/yagi_3.jpg?1726555772235" alt="" width="887" height="591" /></span></strong></p> <p><span style="font-weight: 400;">CHUS, together with the support of our customers and Vietnamese brands, stands in solidarity to help the people of Northern Vietnam overcome this hardship. We believe that when the community comes together, no obstacle is insurmountable.</span></p> <h2><strong>Small Actions, Big Significance</strong></h2> <h3><strong><i>CHUS has donated VND 25,000,000 to the Vietnam Fatherland Front - Central Relief Committee, contributing to post-typhoon recovery efforts.</i></strong></h3> <p><span style="font-weight: 400;">Although this amount is modest, it reflects the warmth and sincere solidarity of the CHUS Team. We transferred the funds to the Vietnam Fatherland Front on September 12, 2024, with the hope of playing a small part in helping the affected communities rebuild their lives as soon as possible.</span></p> <h3><strong><i>"United Hearts for Northern Relief" Program</i></strong></h3> <p><span style="font-weight: 400;">From September 13 to September 30, 2024, for every order placed on chus.vn, 10% of the total value will be donated to the fund supporting the recovery from Typhoon No. 3 - Yagi. CHUS will transfer these contributions to the Vietnam Fatherland Front weekly throughout September.</span><span style="font-weight: 400;"></span></p> <h2><strong>For a Compassionate Vietnam</strong></h2> <p><span style="font-weight: 400;">In recent days, we have witnessed heartwarming images of solidarity—compassionate hearts ready to help those affected by Typhoon Yagi. These are the beautiful values of the Vietnamese people.</span></p> <p><span style="font-weight: 400;">We believe that with the spirit of love and mutual support, and the collective efforts of everyone, we will swiftly overcome the aftermath of Typhoon No. 3 and rebuild a better life. As Prime Minister Pham Minh Chinh said, “We work for the love of our people, for the unity of our nation, all for the people and the development of the country.”</span></p> <p><span style="font-weight: 400;">Thank you for participating in the journey with CHUS!</span></p> en Join CHUS: Support Northern Vietnam in Overcoming Typhoon Yagi Aftermath CHUS, together with the community, is joining forces to support the people of Northern Vietnam in overcoming the challenges left by Typhoon No. 3 - Yagi, reflecting a spirit of solidarity and compassion for a stronger Vietnam. những, đồng, chúng, việt, trong, người, khắc, chus join-chus-support-northern-vietnam-in-overcoming-typhoon-yagi-aftermath 6