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, 13, 3, 14, 15, 16, 18, 19, 22, 23, 38, 
    37, 8, 42, 71, 72, 82, 87, 109, 110, 112, 
    116, 118, 12, 319, 128, 132, 133, 17, 
    147, 169, 170, 172, 173, 174, 175, 181, 
    4, 45, 183, 46, 205, 326, 2312, 2313, 
    2314, 2315, 2316, 2317, 2318, 2319, 
    2320, 2321, 2322, 2323, 2324, 2325, 
    2326, 2327, 2328, 2330, 2331, 2332, 
    2333, 2334, 2335, 2336, 2339, 2337, 
    2340, 2341, 2342, 2338, 2343, 2344, 
    2348, 2349, 2350, 2360, 2642, 3453, 
    8587, 8588, 8589, 8696, 11387, 11388, 
    11389, 11390, 12711, 17076, 21627
  ) 
  AND categories.company_id = 454 
ORDER BY 
  categories.is_trash asc, 
  categories.position asc, 
  category_descriptions.category asc

Query time 0.00444

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "41.56"
    },
    "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": 92,
            "rows_produced_per_join": 0,
            "filtered": "0.05",
            "cost_info": {
              "read_cost": "41.49",
              "eval_cost": "0.01",
              "prefix_cost": "41.49",
              "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` = 454) 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,13,3,14,15,16,18,19,22,23,38,37,8,42,71,72,82,87,109,110,112,116,118,12,319,128,132,133,17,147,169,170,172,173,174,175,181,4,45,183,46,205,326,2312,2313,2314,2315,2316,2317,2318,2319,2320,2321,2322,2323,2324,2325,2326,2327,2328,2330,2331,2332,2333,2334,2335,2336,2339,2337,2340,2341,2342,2338,2343,2344,2348,2349,2350,2360,2642,3453,8587,8588,8589,8696,11387,11388,11389,11390,12711,17076,21627)))"
          }
        },
        {
          "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.01",
              "eval_cost": "0.01",
              "prefix_cost": "41.51",
              "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": "41.56",
              "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
2350 2349 2349/2350 Earrings 0 A 454 0 earrings 2349
2332 2325 2325/2332 1" Magnets 1 A 454 0 1-magnets 2325
2313 2312 2312/2313 Bracelets 1 A 454 0 chainmaille-jewelry 2312
8588 8587 8587/8588 Bracelets with Charm 1 A 454 0 bracelet-with-charm 8587
2318 2316 2316/2318 Cameo 1 A 454 0 cameo 2316
11388 11387 11387/11388 Christmas 1 A 454 0 christmas 11387
2324 2323 2323/2324 Earrings 1 A 454 0 earrings 2323
2335 2333 2325/2333/2335 Foil Magnets 1 A 454 0 foil-magnets 2325/2333
2337 2336 2336/2337 Magnets 1 A 454 0 magnets 2336
2343 2338 2336/2338/2343 Pendant Set, 1" 1 A 454 0 pendant-set-1 2336/2338
2340 2337 2336/2337/2340 Round Magnets, 1" 1 A 454 0 round-magnets-1 2336/2337
2333 2325 2325/2333 1.25" Magnets 2 A 454 0 1.25-magnets 2325
2317 2316 2316/2317 Chainmaille 2 A 454 0 chainmaille 2316
17076 11387 11387/17076 Halloween 2 A 454 0 halloween 11387
2338 2336 2336/2338 Magnet Pendants 2 A 454 0 magnet-pendants 2336
2326 2323 2323/2326 Necklaces 2 A 454 0 necklaces 2323
2314 2312 2312/2314 Necklaces and Chokers 2 A 454 0 scalemaille-jewelry 2312
2344 2338 2336/2338/2344 Pendant Set, 1.25" 2 A 454 0 pendant-set-1.25 2336/2338
2341 2337 2336/2337/2341 Round Magnets, 1.25" 2 A 454 0 round-magnets-1.25 2336/2337
8589 8587 8587/8589 Word Token Bracelets 2 A 454 0 word-token-bracelet 8587
2315 2312 2312/2315 Earrings 3 A 454 0 cameo-jewelry 2312
2348 2316 2316/2348 Heart Logo 3 A 454 0 heart-logo 2316
2339 2336 2336/2339 Heart Logo Keychains 3 A 454 0 keychains 2336
8696 2325 2325/8696 Rectangle Magnets 3 A 454 0 rectangle-magnets 2325
2342 2337 2336/2337/2342 Rectangle Magnets 3 A 454 0 rectangle-magnets 2336/2337
2327 2323 2323/2327 Rings 3 A 454 0 rings 2323
11389 11387 11387/11389 Valentine's Day 3 A 454 0 valentines-day 11387
11390 11387 11387/11390 Easter 4 A 454 0 easter 11387
2319 2312 2312/2319 Hand Jewelry 4 A 454 0 hand-jewelry 2312
2328 2323 2323/2328 Jewelry Sets 4 A 454 0 jewelry-sets 2323
2334 2325 2325/2334 Magnet Pendants 4 A 454 0 magnet-pendants 2325
21627 0 21627 Amigurumi Animals 5 A 454 0 amigurumi-animals
2320 2312 2312/2320 Jewelry Sets 5 A 454 0 jewelry-sets 2312
2330 2323 2323/2330 Keychains 5 A 454 0 keychains 2323
2321 2312 2312/2321 Charms 6 A 454 0 charms 2312
2322 2312 2312/2322 Keychains 7 A 454 0 keychains 2312
2331 2312 2312/2331 Fidget Toy 8 A 454 0 fidget-toy 2312
2312 0 2312 Chainmaille Jewelry 10 A 454 0 jewelry-en-12
2349 0 2349 Scalemaille Jewelry 20 A 454 0 scalemaille-jewelry
2323 0 2323 Cameo Jewelry 30 A 454 0 cameo-jewelry
3453 0 3453 Miscellaneous Jewelry 35 A 454 0 miscellaneous-jewelry
8587 0 8587 Macrame Bracelets 36 A 454 0 macrame-bracelets
2316 0 2316 Keychains 40 A 454 0 keychains
2325 0 2325 Magnets 50 A 454 0 necklaces-en-11
2642 0 2642 Crochet Items 60 A 454 0 crochet-items
2360 0 2360 Scrapbook Die Cuts 70 A 454 0 scrapbook-die-cuts
12711 0 12711 Dollhouse Miniatures 75 A 454 0 dollhouse-miniatures
11387 0 11387 Holiday & Seasonal 80 A 454 0 holiday-seasonal-en-8
2336 0 2336 Goimagine Street Team 90 A 454 0 goimagine-street-team-en