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, 17, 18, 3, 87, 109, 116, 117, 118, 123, 
    13, 131, 147, 148, 19, 157, 170, 173, 
    175, 4, 179, 257, 12, 58, 294, 1094, 1096, 
    1353, 1099, 1100, 1101, 1103, 1105, 
    1106, 1107, 1108, 1097, 1109, 1111, 
    1114, 1256, 1286, 1623, 1624, 1625, 
    2012, 5, 2185, 2186, 2189, 2190, 3125, 
    3126, 4459, 16320
  ) 
  AND categories.company_id = 163 
ORDER BY 
  categories.is_trash asc, 
  categories.position asc, 
  category_descriptions.category asc

Query time 0.00194

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "24.88"
    },
    "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": 55,
            "rows_produced_per_join": 0,
            "filtered": "0.09",
            "cost_info": {
              "read_cost": "24.81",
              "eval_cost": "0.01",
              "prefix_cost": "24.81",
              "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` = 163) 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,17,18,3,87,109,116,117,118,123,13,131,147,148,19,157,170,173,175,4,179,257,12,58,294,1094,1096,1353,1099,1100,1101,1103,1105,1106,1107,1108,1097,1109,1111,1114,1256,1286,1623,1624,1625,2012,5,2185,2186,2189,2190,3125,3126,4459,16320)))"
          }
        },
        {
          "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": "24.83",
              "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": "24.88",
              "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
4459 1097 1097/4459 4th of July 0 A 163 0 4th-of-july 1097
1114 1097 1097/1114 Autumn 0 A 163 0 autumn 1097
1286 1353 1353/1286 Cancer Awareness 0 A 163 0 cancer-awareness 1353
1111 1097 1097/1111 Christmas 0 A 163 0 christmas 1097
1256 1096 1096/1256 Dangle 0 A 163 0 dangle 1096
1107 1353 1353/1107 Diffuser/Essential Oil Bracelets 0 A 163 0 diffuser-essential-oil-bracelets 1353
1625 1097 1097/1625 Easter 0 A 163 0 easter 1097
1108 1353 1353/1108 Gemstone/Beaded Bracelets 0 A 163 0 gemstone-beaded-bracelets 1353
1099 1353 1353/1099 Heishi Bracelets 0 A 163 0 heishi-bracelets 1353
3126 3125 3125/3126 Heishi Necklace 0 A 163 0 heishi-necklace 3125
1100 1353 1353/1100 Macrame Bracelets 0 A 163 0 macrame-bracelets 1353
1103 1353 1353/1103 Morse Code Bracelets 0 A 163 0 morse-code-bracelets-en 1353
2186 1097 1097/2186 Mothers Day 0 A 163 0 mothers-day 1097
2190 1353 1353/2190 Pet Lovers/Pet Memorials 0 A 163 0 pet-lovers-pet-memorials 1353
2012 1096 1096/2012 Posts 0 A 163 0 posts 1096
2189 1097 1097/2189 St. Patricks Day 0 A 163 0 st.-patricks-day 1097
1105 1353 1353/1105 String/Wax Cord Stacks 0 A 163 0 string-wax-cord-stacks 1353
1623 1097 1097/1623 Summer 0 A 163 0 summer 1097
1101 1353 1353/1101 Tila Bracelets 0 A 163 0 tila-bracelets 1353
1109 1097 1097/1109 Valentines Day 0 A 163 0 valentines-day 1097
1624 1097 1097/1624 Winter 0 A 163 0 winter 1097
1353 0 1353 Bracelets 2 A 163 0 bracelets-en-7
1106 0 1106 Ankle Bracelets 3 A 163 0 ankle-bracelets
1096 0 1096 Earrings 4 A 163 0 earrings-en-8
3125 0 3125 Necklace 5 A 163 0 necklace-en
1097 0 1097 Holiday/Seasonal 6 A 163 0 holiday-seasonal-en
16320 0 16320 Key Chains 7 A 163 0 key-chains-en-21