SELECT 
  categories.category_id, 
  categories.parent_id, 
  categories.id_path, 
  category_descriptions.category, 
  categories.position, 
  categories.status, 
  categories.company_id, 
  categories.storefront_id, 
  seo_names.name as seo_name, 
  seo_names.path as seo_path, 
  category_descriptions.mega_m_category_banner_url, 
  category_descriptions.mega_m_category_svg_icon 
FROM 
  categories 
  LEFT JOIN category_descriptions ON categories.category_id = category_descriptions.category_id 
  AND category_descriptions.lang_code = 'en' 
  LEFT JOIN seo_names ON seo_names.object_id = categories.category_id 
  AND seo_names.type = 'c' 
  AND seo_names.dispatch = '' 
  AND seo_names.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.storefront_id IN (0, 1) 
  AND categories.deleted_at IS NULL 
  AND categories.category_id IN(
    2, 4, 5, 13, 3, 14, 15, 17, 20, 23, 26, 27, 
    33, 38, 71, 78, 81, 82, 87, 96, 108, 109, 
    110, 111, 112, 114, 115, 116, 117, 118, 
    121, 123, 131, 132, 133, 137, 147, 149, 
    155, 168, 169, 18, 170, 171, 173, 175, 
    178, 45, 183, 185, 191, 192, 48, 236, 
    238, 241, 243, 179, 259, 266, 326, 2185, 
    2566, 4827, 4828, 4829, 4830, 4831, 
    4832, 4833, 4834, 4835, 4836, 4837, 
    4838, 4839, 4840, 4841, 4842, 4843, 
    4844, 4845, 4846, 4887, 4888
  ) 
  AND categories.company_id = 2607 
ORDER BY 
  categories.is_trash asc, 
  categories.position asc, 
  category_descriptions.category asc

Query time 0.00215

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "38.41"
    },
    "ordering_operation": {
      "using_temporary_table": true,
      "using_filesort": true,
      "nested_loop": [
        {
          "table": {
            "table_name": "categories",
            "access_type": "range",
            "possible_keys": [
              "PRIMARY",
              "c_status",
              "p_category_id",
              "index_categories_on_deleted_at"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "category_id"
            ],
            "key_length": "3",
            "rows_examined_per_scan": 85,
            "rows_produced_per_join": 0,
            "filtered": "0.06",
            "cost_info": {
              "read_cost": "38.33",
              "eval_cost": "0.01",
              "prefix_cost": "38.34",
              "data_read_per_join": "134"
            },
            "used_columns": [
              "category_id",
              "parent_id",
              "id_path",
              "company_id",
              "usergroup_ids",
              "status",
              "position",
              "is_trash",
              "deleted_at",
              "storefront_id"
            ],
            "attached_condition": "((`goimagine`.`categories`.`company_id` = 2607) 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`.`storefront_id` in (0,1)) and (`goimagine`.`categories`.`deleted_at` is null) and (`goimagine`.`categories`.`category_id` in (2,4,5,13,3,14,15,17,20,23,26,27,33,38,71,78,81,82,87,96,108,109,110,111,112,114,115,116,117,118,121,123,131,132,133,137,147,149,155,168,169,18,170,171,173,175,178,45,183,185,191,192,48,236,238,241,243,179,259,266,326,2185,2566,4827,4828,4829,4830,4831,4832,4833,4834,4835,4836,4837,4838,4839,4840,4841,4842,4843,4844,4845,4846,4887,4888)))"
          }
        },
        {
          "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": 0,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.02",
              "eval_cost": "0.01",
              "prefix_cost": "38.36",
              "data_read_per_join": "232"
            },
            "used_columns": [
              "category_id",
              "lang_code",
              "category",
              "mega_m_category_banner_url",
              "mega_m_category_svg_icon"
            ]
          }
        },
        {
          "table": {
            "table_name": "seo_names",
            "access_type": "ref",
            "possible_keys": [
              "PRIMARY",
              "dispatch"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "object_id",
              "type",
              "dispatch",
              "lang_code"
            ],
            "key_length": "206",
            "ref": [
              "goimagine.categories.category_id",
              "const",
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.04",
              "eval_cost": "0.01",
              "prefix_cost": "38.41",
              "data_read_per_join": "86"
            },
            "used_columns": [
              "name",
              "object_id",
              "company_id",
              "type",
              "dispatch",
              "path",
              "lang_code"
            ]
          }
        }
      ]
    }
  }
}

Result

category_id parent_id id_path category position status company_id storefront_id seo_name seo_path mega_m_category_banner_url mega_m_category_svg_icon
4827 0 4827 Sun Catchers 1 A 2607 0 sun-catchers-en
4828 0 4828 Necklace 2 A 2607 0 necklace-en-2
4829 0 4829 Earrings 3 A 2607 0 earrings-en-44
4830 0 4830 Bracelets 4 A 2607 0 bracelets-en-28
4834 0 4834 Zodiac Suncatchers 5 A 2607 0 zodiac-suncatchers
4831 0 4831 Jewelry Dish 7 A 2607 0 jewelry-dish
4832 0 4832 Breast Cancer Awareness 8 A 2607 0 breast-cancer-awareness
4837 0 4837 Spring Season 9 A 2607 0 spring-season
4838 0 4838 Summer Season 10 A 2607 0 summer-season
4839 0 4839 Autumn Season 11 A 2607 0 autumn-season
4840 0 4840 Winter Season 12 A 2607 0 winter-season
4833 0 4833 Bridal 13 A 2607 0 bridal-en-3
4844 0 4844 Christmas 14 A 2607 0 christmas-en-9
4842 0 4842 Easter 15 A 2607 0 easter-en-10
4843 0 4843 St. Patricks Day 16 A 2607 0 st.-patricks-day-en-4
4841 0 4841 Valentines Day 17 A 2607 0 valentines-day-en-2
4845 0 4845 Hanukkah 18 A 2607 0 hanukkah-en
4836 0 4836 Plant Stakes 19 A 2607 0 plant-stakes
4835 0 4835 Purse/Cell Phone Jewelry 20 A 2607 0 purse-cell-phone-jewelry
4888 0 4888 Sparkler Sun Catcher 21 A 2607 0 sparkler-sun-catcher
4887 0 4887 Zipper Pulls 22 A 2607 0 zipper-pulls