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 = 122 
  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.00140

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
122 1698653040 1698653040 N A 0 519 D Hương N 0 N 0 N 0 0 R 301 955 How To Create #Vietflex Avatar <p><span style="font-weight: 400;">This guide instructs you to insert your profile picture into the #Vietflex frame. Use this avatar to flex your Viet item and appreciation for handmade goods! </span></p> <p><span style="font-weight: 400;">"Chus, how do I create the #Vietflex avatar?"</span></p> <p><span style="font-weight: 400;">"Chus, I don't know how to insert a profile picture into the #Vietflex frame!"</span></p> <p><span style="font-weight: 400;">Don't worry; read through this short guide to create your own avatar, immerse yourself in #VIETFLEX with CHUS and spread the values of Vietnamese craftsmanship!</span></p> <p><img src="https://chus.vn/images/Blog/vietflex/ENG/1.%20vietflex%2C%20avatar%2C%20a%CC%89nh%20%C4%91a%CC%A3i%20die%CC%A3%CC%82n%2C%20chus.png?1698650104112" alt="vietflex, avatar, ảnh đại diện, chus, hướng dẫn đổi ảnh đại diện" width="1000" height="1000" /></p> <h2><span style="font-weight: 400;">How to insert your profile picture into the #Vietflex frame:</span></h2> <p><span style="font-weight: 400;">First, click on <a href="https://www.canva.com/design/DAFxstrtYPo/XOKQIYzDU46HT-JIuvje9g/view?utm_content=DAFxstrtYPo&amp;utm_campaign=designshare&amp;utm_medium=link&amp;utm_source=publishsharelink&amp;mode=preview&amp;fbclid=IwAR1lHTkIZMLqg8KZn_mhXVhomZMe0SHGYX1nhsvChIWItnU6inBnhCz1Brs" target="_blank" rel="noopener"><strong>this link</strong></a> and choose "Use template for new design."</span></p> <p><span style="font-weight: 400;">Then, follow the steps from 1 to 5</span></p> <h2><img src="https://chus.vn/images/Blog/vietflex/ENG/2.%20_vietflex%2C%20avatar%2C%20a%CC%89nh%20%C4%91a%CC%A3i%20die%CC%A3%CC%82n%2C%20chus%2C%20hu%CC%9Bo%CC%9B%CC%81ng%20da%CC%82%CC%83n%20%C4%91o%CC%82%CC%89i%20a%CC%89nh%20%C4%91a%CC%A3i%20die%CC%A3%CC%82n_.png?1698650125222" alt="vietflex, avatar, ảnh đại diện, chus, hướng dẫn đổi ảnh đại diện" width="1000" height="1000" /></h2> <p><span style="font-weight: 400;"><img src="https://chus.vn/images/Blog/vietflex/ENG/3.%20_vietflex%2C%20avatar%2C%20a%CC%89nh%20%C4%91a%CC%A3i%20die%CC%A3%CC%82n%2C%20chus%2C%20hu%CC%9Bo%CC%9B%CC%81ng%20da%CC%82%CC%83n%20%C4%91o%CC%82%CC%89i%20avatar_.png?1698650131903" alt="vietflex, avatar, ảnh đại diện, chus, hướng dẫn đổi avatar" width="1116" height="1000" /></span></p> <p><span style="font-weight: 400;">And there you go! </span><i><span style="font-weight: 400;">But hang on</span></i><span style="font-weight: 400;">, do you know what the #Vietflex profile picture frame is for? </span></p> <p><span style="font-weight: 400;">It's a frame to make your avatar on social media more fun and vibrant. Whether you use the frame doesn’t affect the result of #Vietflex challenge on social media. </span></p> <h2><span style="font-weight: 400;">Vietflex Challenge Reminder </span></h2> <p><span style="font-weight: 400;">And let CHUS remind you a bit about #Vietflex, as well as inform those who might not know:</span></p> <p><span style="font-weight: 400;">#VietFlex is a challenge organized by CHUS to promote the beauty of Vietnamese products, especially handcrafted wonders. This challenge is to honor the rich cultural heritage of handmade art and to define the quality of Vietnamese-made goods. </span></p> <p><span style="font-weight: 400;"><img src="https://chus.vn/images/Blog/vietflex/ENG/4.%20_vietflex%2C%20chus%2C%20vie%CC%A3%CC%82t%20nam%2C%20thu%CC%89%20co%CC%82ng_.jpg?1698650144674" alt="vietflex, chus, việt nam, thủ công" width="1174" height="661" /></span></p> <p><span style="font-weight: 400;">To join the challenge, all you need to do is take a picture of yourself using a Vietnamese product, post it, and include the appropriate hashtag.</span></p> <p><span style="font-weight: 400;"><strong>Duration:</strong> From 19/10/2023 to 16/11/2023, on Facebook, Instagram, and Tiktok.</span></p> <p><span style="font-weight: 400;">Learn how to participate in the challenge here: </span><a href="https://chus.vn/join-vietflex-challenge-and-flex-your-style-with-vietnamese-products/" target="_blank" rel="noopener"><span style="font-weight: 400;">https://chus.vn/join-vietflex-challenge-and-flex-your-style-with-vietnamese-products/</span></a></p> en How To Create #Vietflex Avatar This guide instructs you to insert your profile picture into the #Vietflex frame. Use this avatar to flex your Viet item and appreciation for handmade goods! vietflex, avatar, chus, profile picture how-to-create-vietflex-avatar 6