SELECT 
  tmall_pages.*, 
  tmall_page_descriptions.page, 
  tmall_tag_links.*, 
  tmall_tags.tag, 
  tmall_tags.tag_id, 
  tmall_tags.timestamp, 
  tmall_page_descriptions.page_sitemap 
FROM 
  tmall_pages 
  LEFT JOIN tmall_page_descriptions ON tmall_pages.page_id = tmall_page_descriptions.page_id 
  AND tmall_page_descriptions.lang_code = 'en' 
  INNER JOIN tmall_tag_links ON tmall_pages.page_id = tmall_tag_links.object_id 
  AND tmall_tag_links.object_type = 'A' 
  INNER JOIN tmall_tags ON tmall_tag_links.tag_id = tmall_tags.tag_id 
WHERE 
  1 
  AND tmall_pages.status IN ('A') 
  AND tmall_pages.page_type IN ('T', 'L') 
  AND (
    tmall_pages.usergroup_ids = '' 
    OR FIND_IN_SET(0, tmall_pages.usergroup_ids) 
    OR FIND_IN_SET(1, tmall_pages.usergroup_ids)
  ) 
  AND (
    tmall_pages.use_avail_period = 'N' 
    OR (
      tmall_pages.use_avail_period = 'Y' 
      AND tmall_pages.avail_from_timestamp <= 1765557819 
      AND (
        tmall_pages.avail_till_timestamp >= 1765557819 
        OR tmall_pages.avail_till_timestamp = 0
      )
    )
  ) 
  AND (tmall_tags.tag = 'test') 
  AND tmall_tags.status = 'A' 
ORDER BY 
  tmall_pages.position asc, 
  tmall_page_descriptions.page asc

Query time 0.00825

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.00673029,
    "filesort": {
      "sort_key": "tmall_pages.position, tmall_page_descriptions.`page`",
      "temporary_table": {
        "nested_loop": [
          {
            "table": {
              "table_name": "tmall_tag_links",
              "access_type": "ref",
              "possible_keys": ["PRIMARY", "tag_id", "ids"],
              "key": "PRIMARY",
              "key_length": "3",
              "used_key_parts": ["object_type"],
              "ref": ["const"],
              "loops": 1,
              "rows": 1,
              "cost": 0.000928812,
              "filtered": 100,
              "attached_condition": "tmall_tag_links.object_type = 'A'",
              "using_index": true
            }
          },
          {
            "table": {
              "table_name": "tmall_pages",
              "access_type": "eq_ref",
              "possible_keys": ["PRIMARY"],
              "key": "PRIMARY",
              "key_length": "3",
              "used_key_parts": ["page_id"],
              "ref": ["tmall.tmall_tag_links.object_id"],
              "loops": 1,
              "rows": 1,
              "cost": 0.001933826,
              "filtered": 100,
              "attached_condition": "tmall_pages.`status` = 'A' and tmall_pages.page_type in ('T','L') and (tmall_pages.usergroup_ids = '' or find_in_set(0,tmall_pages.usergroup_ids) or find_in_set(1,tmall_pages.usergroup_ids)) and (tmall_pages.use_avail_period = 'N' or tmall_pages.use_avail_period = 'Y' and tmall_pages.avail_from_timestamp <= 1765557819 and (tmall_pages.avail_till_timestamp >= 1765557819 or tmall_pages.avail_till_timestamp = 0))"
            }
          },
          {
            "table": {
              "table_name": "tmall_tags",
              "access_type": "eq_ref",
              "possible_keys": ["PRIMARY", "tag"],
              "key": "PRIMARY",
              "key_length": "3",
              "used_key_parts": ["tag_id"],
              "ref": ["tmall.tmall_tag_links.tag_id"],
              "loops": 1,
              "rows": 1,
              "cost": 0.001933826,
              "filtered": 25,
              "attached_condition": "tmall_tags.tag = 'test' and tmall_tags.`status` = 'A'"
            }
          },
          {
            "table": {
              "table_name": "tmall_page_descriptions",
              "access_type": "eq_ref",
              "possible_keys": ["PRIMARY"],
              "key": "PRIMARY",
              "key_length": "9",
              "used_key_parts": ["page_id", "lang_code"],
              "ref": ["tmall.tmall_tag_links.object_id", "const"],
              "loops": 1,
              "rows": 1,
              "cost": 0.001933826,
              "filtered": 100,
              "attached_condition": "trigcond(tmall_page_descriptions.lang_code = 'en')"
            }
          }
        ]
      }
    }
  }
}