SELECT 
  categories.category_id, 
  categories.parent_id, 
  categories.id_path, 
  category_descriptions.category, 
  categories.position, 
  categories.status, 
  categories.company_id 
FROM 
  categories 
  LEFT JOIN category_descriptions ON categories.category_id = category_descriptions.category_id 
  AND category_descriptions.lang_code = 'en' 
WHERE 
  1 = 1 
  AND (
    categories.usergroup_ids = '' 
    OR FIND_IN_SET(0, categories.usergroup_ids) 
    OR FIND_IN_SET(1, categories.usergroup_ids)
  ) 
  AND categories.status IN ('A') 
  AND categories.level <= 3 
  AND categories.deleted_at IS NULL 
  AND categories.company_id = 562 
ORDER BY 
  categories.is_trash asc, 
  categories.position asc, 
  category_descriptions.category asc

Query time 0.03979

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "1153.20"
    },
    "ordering_operation": {
      "using_temporary_table": true,
      "using_filesort": true,
      "nested_loop": [
        {
          "table": {
            "table_name": "categories",
            "access_type": "ref",
            "possible_keys": [
              "c_status",
              "index_categories_on_deleted_at"
            ],
            "key": "index_categories_on_deleted_at",
            "used_key_parts": [
              "deleted_at"
            ],
            "key_length": "6",
            "ref": [
              "const"
            ],
            "rows_examined_per_scan": 10182,
            "rows_produced_per_join": 33,
            "filtered": "0.33",
            "index_condition": "(`goimagine`.`categories`.`deleted_at` is null)",
            "cost_info": {
              "read_cost": "120.75",
              "eval_cost": "3.39",
              "prefix_cost": "1138.95",
              "data_read_per_join": "88K"
            },
            "used_columns": [
              "category_id",
              "parent_id",
              "id_path",
              "level",
              "company_id",
              "usergroup_ids",
              "status",
              "position",
              "is_trash",
              "deleted_at"
            ],
            "attached_condition": "((`goimagine`.`categories`.`company_id` = 562) and ((`goimagine`.`categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`goimagine`.`categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`goimagine`.`categories`.`usergroup_ids`))) and (`goimagine`.`categories`.`status` = 'A') and (`goimagine`.`categories`.`level` <= 3))"
          }
        },
        {
          "table": {
            "table_name": "category_descriptions",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "category_id",
              "lang_code"
            ],
            "key_length": "9",
            "ref": [
              "goimagine.categories.category_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 33,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "10.86",
              "eval_cost": "3.39",
              "prefix_cost": "1153.20",
              "data_read_per_join": "154K"
            },
            "used_columns": [
              "category_id",
              "lang_code",
              "category"
            ]
          }
        }
      ]
    }
  }
}

Result

category_id parent_id id_path category position status company_id
2085 2084 2084/2085 Broken Glass 0 A 562
1563 1557 1557/1563 Cuff Bracelets 0 A 562
1564 1558 1558/1564 Dangle Earrings 0 A 562
4574 1557 1557/4574 Knit Cord Bracelets 0 A 562
1746 1555 1555/1746 Kumihimo Beaded Necklace 0 A 562
1713 1555 1555/1713 Lariats 0 A 562
1719 1556 1556/1719 Porcelain Pendants 0 A 562
2087 2084 2084/2087 Religious 0 A 562
1720 1556 1556/1720 Religious Pendants 0 A 562
1718 1555 1555/1718 Wire-Wrapped Necklaces 0 A 562
1562 1556 1556/1562 Wire-Wrapped Porcelain 0 A 562
2086 2084 2084/2086 Wood and Wire 0 A 562
1553 0 1553 All Products 1 A 562
1554 0 1554 Jewelry 2 A 562
1558 0 1558 Earrings 3 A 562
1556 0 1556 Pendants 4 A 562
1557 0 1557 Bracelets 5 A 562
1555 0 1555 Necklaces 6 A 562
1559 0 1559 Porcelain 7 A 562
1560 0 1560 Wire-Wrapped 8 A 562
2084 0 2084 Assemblage Art 9 A 562
1561 0 1561 Gifts Under $30 10 A 562