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 = 6825 
ORDER BY 
  categories.is_trash asc, 
  categories.position asc, 
  category_descriptions.category asc

Query time 0.03936

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "1151.17"
    },
    "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` = 6825) 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": "8.82",
              "eval_cost": "3.39",
              "prefix_cost": "1151.17",
              "data_read_per_join": "154K"
            },
            "used_columns": [
              "category_id",
              "lang_code",
              "category"
            ]
          }
        }
      ]
    }
  }
}

Result

category_id parent_id id_path category position status company_id
15805 15578 15578/15805 10 inch disk 0 A 6825
15580 15578 15578/15580 10x10 0 A 6825
15634 15578 15578/15634 11x14 0 A 6825
15581 15578 15578/15581 12x12 0 A 6825
15633 15578 15578/15633 12x16 0 A 6825
16218 15578 15578/16218 14x14in 0 A 6825
15636 15578 15578/15636 16x20 0 A 6825
16033 15590 15588/15590/16033 6x6inch 0 A 6825
15616 15578 15578/15616 8in disk 0 A 6825
15579 15578 15578/15579 8x8 0 A 6825
15635 15578 15578/15635 9x12 0 A 6825
15593 15582 15582/15593 Black 0 A 6825
15586 15582 15582/15586 Bracelets 0 A 6825
15589 15588 15588/15589 Coaster Sets 0 A 6825
15587 15582 15582/15587 Earrings 0 A 6825
16111 15588 15588/16111 Flower Pots & Vases 0 A 6825
15592 15582 15582/15592 Gold 0 A 6825
15582 0 15582 Jewelry 0 A 6825
15585 15582 15582/15585 Necklaces & Pendants 0 A 6825
15588 0 15588 Painted Decor 0 A 6825
15590 15588 15588/15590 Painted Tiles 0 A 6825
15578 0 15578 Paintings 0 A 6825
15584 15582 15582/15584 Rings, Adjustable 0 A 6825
15591 15582 15582/15591 Silver 0 A 6825
15594 15582 15582/15594 Wood 0 A 6825