SELECT 
  cscart_pages.*, 
  cscart_page_descriptions.*, 
  cscart_seo_names.name as seo_name, 
  cscart_seo_names.path as seo_path 
FROM 
  cscart_pages 
  LEFT JOIN cscart_page_descriptions ON cscart_pages.page_id = cscart_page_descriptions.page_id 
  AND cscart_page_descriptions.lang_code = 'en' 
  LEFT JOIN cscart_seo_names ON cscart_seo_names.object_id = cscart_pages.page_id 
  AND cscart_seo_names.type = 'a' 
  AND cscart_seo_names.dispatch = '' 
  AND cscart_seo_names.lang_code = 'en' 
WHERE 
  1 
  AND cscart_pages.id_path LIKE '68/%' 
  AND cscart_pages.status IN ('A') 
  AND cscart_pages.page_type IN ('T', 'L', 'F', 'P') 
  AND (
    cscart_pages.usergroup_ids = '' 
    OR FIND_IN_SET(0, cscart_pages.usergroup_ids) 
    OR FIND_IN_SET(1, cscart_pages.usergroup_ids)
  ) 
  AND (
    cscart_pages.use_avail_period = 'N' 
    OR (
      cscart_pages.use_avail_period = 'Y' 
      AND cscart_pages.avail_from_timestamp <= 1732367574 
      AND (
        cscart_pages.avail_till_timestamp >= 1732367574 
        OR cscart_pages.avail_till_timestamp = 0
      )
    )
  ) 
ORDER BY 
  cscart_pages.position asc, 
  cscart_pages.parent_id asc, 
  cscart_page_descriptions.page asc

Query time 0.00099

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "13.51"
    },
    "ordering_operation": {
      "using_temporary_table": true,
      "using_filesort": true,
      "nested_loop": [
        {
          "table": {
            "table_name": "cscart_pages",
            "access_type": "range",
            "possible_keys": [
              "id_path"
            ],
            "key": "id_path",
            "used_key_parts": [
              "id_path"
            ],
            "key_length": "767",
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "5.00",
            "index_condition": "(`s2cart`.`cscart_pages`.`id_path` like '68/%')",
            "cost_info": {
              "read_cost": "0.70",
              "eval_cost": "0.01",
              "prefix_cost": "0.71",
              "data_read_per_join": "132"
            },
            "used_columns": [
              "page_id",
              "company_id",
              "parent_id",
              "id_path",
              "status",
              "page_type",
              "position",
              "timestamp",
              "usergroup_ids",
              "localization",
              "new_window",
              "use_avail_period",
              "avail_from_timestamp",
              "avail_till_timestamp",
              "facebook_obj_type",
              "staff_notes",
              "abt__ut2_microdata_schema_type"
            ],
            "attached_condition": "((`s2cart`.`cscart_pages`.`status` = 'A') and (`s2cart`.`cscart_pages`.`page_type` in ('T','L','F','P')) and ((`s2cart`.`cscart_pages`.`usergroup_ids` = '') or (0 <> find_in_set(0,`s2cart`.`cscart_pages`.`usergroup_ids`)) or (0 <> find_in_set(1,`s2cart`.`cscart_pages`.`usergroup_ids`))) and ((`s2cart`.`cscart_pages`.`use_avail_period` = 'N') or ((`s2cart`.`cscart_pages`.`use_avail_period` = 'Y') and (`s2cart`.`cscart_pages`.`avail_from_timestamp` <= 1732367574) and ((`s2cart`.`cscart_pages`.`avail_till_timestamp` >= 1732367574) or (`s2cart`.`cscart_pages`.`avail_till_timestamp` = 0)))))"
          }
        },
        {
          "table": {
            "table_name": "cscart_page_descriptions",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "page_id",
              "lang_code"
            ],
            "key_length": "9",
            "ref": [
              "s2cart.cscart_pages.page_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.01",
              "eval_cost": "0.01",
              "prefix_cost": "0.73",
              "data_read_per_join": "346"
            },
            "used_columns": [
              "page_id",
              "lang_code",
              "page",
              "description",
              "meta_keywords",
              "meta_description",
              "page_title",
              "link",
              "page_sitemap",
              "ab__custom_page_h1",
              "custom_header",
              "ab__emd_alternative_name"
            ]
          }
        },
        {
          "table": {
            "table_name": "cscart_seo_names",
            "access_type": "ref",
            "possible_keys": [
              "PRIMARY",
              "dispatch"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "object_id",
              "type",
              "dispatch",
              "lang_code"
            ],
            "key_length": "206",
            "ref": [
              "s2cart.cscart_pages.page_id",
              "const",
              "const",
              "const"
            ],
            "rows_examined_per_scan": 696,
            "rows_produced_per_join": 34,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "9.30",
              "eval_cost": "3.48",
              "prefix_cost": "13.51",
              "data_read_per_join": "58K"
            },
            "used_columns": [
              "name",
              "object_id",
              "type",
              "dispatch",
              "path",
              "lang_code"
            ]
          }
        }
      ]
    }
  }
}