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(
    23, 31, 71, 75, 2, 82, 4, 100, 13, 132, 137, 
    16, 139, 17, 147, 148, 45, 185, 191, 46, 
    205, 209, 212, 15578, 15579, 15580, 
    15581, 15582, 15584, 15585, 15587, 
    15588, 15590, 15591, 15593, 15616, 
    15633, 15634, 15636, 15805, 16033, 
    16111, 16218
  ) 
  AND categories.company_id = 6825 
ORDER BY 
  categories.is_trash asc, 
  categories.position asc, 
  category_descriptions.category asc

Query time 0.00160

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "19.47"
    },
    "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": 43,
            "rows_produced_per_join": 0,
            "filtered": "0.12",
            "cost_info": {
              "read_cost": "19.39",
              "eval_cost": "0.00",
              "prefix_cost": "19.40",
              "data_read_per_join": "133"
            },
            "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` = 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`.`storefront_id` in (0,1)) and (`goimagine`.`categories`.`deleted_at` is null) and (`goimagine`.`categories`.`category_id` in (23,31,71,75,2,82,4,100,13,132,137,16,139,17,147,148,45,185,191,46,205,209,212,15578,15579,15580,15581,15582,15584,15585,15587,15588,15590,15591,15593,15616,15633,15634,15636,15805,16033,16111,16218)))"
          }
        },
        {
          "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.00",
              "prefix_cost": "19.42",
              "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.00",
              "prefix_cost": "19.47",
              "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
15805 15578 15578/15805 10 inch disk 0 A 6825 0 10-inch-disk 15578
15580 15578 15578/15580 10x10 0 A 6825 0 10x10 15578
15634 15578 15578/15634 11x14 0 A 6825 0 11x14 15578
15581 15578 15578/15581 12x12 0 A 6825 0 12x12 15578
15633 15578 15578/15633 12x16 0 A 6825 0 12x16 15578
16218 15578 15578/16218 14x14in 0 A 6825 0 14x14in-canvas 15578
15636 15578 15578/15636 16x20 0 A 6825 0 16x20 15578
16033 15590 15588/15590/16033 6x6inch 0 A 6825 0 6x6inch 15588/15590
15616 15578 15578/15616 8in disk 0 A 6825 0 8in-disk 15578
15579 15578 15578/15579 8x8 0 A 6825 0 8x8 15578
15593 15582 15582/15593 Black 0 A 6825 0 black 15582
15587 15582 15582/15587 Earrings 0 A 6825 0 earrings 15582
16111 15588 15588/16111 Flower Pots & Vases 0 A 6825 0 flower-pots-and-vases 15588
15582 0 15582 Jewelry 0 A 6825 0 jewelry-en-115
15585 15582 15582/15585 Necklaces & Pendants 0 A 6825 0 necklaces-and-pendants 15582
15588 0 15588 Painted Decor 0 A 6825 0 painted-decor
15590 15588 15588/15590 Painted Tiles 0 A 6825 0 painted-tiles 15588
15578 0 15578 Paintings 0 A 6825 0 canvases
15584 15582 15582/15584 Rings, Adjustable 0 A 6825 0 rings-adjustable 15582
15591 15582 15582/15591 Silver 0 A 6825 0 silver 15582