SELECT 
  cscart_categories.category_id, 
  cscart_categories.parent_id, 
  cscart_categories.id_path, 
  cscart_category_descriptions.category, 
  cscart_categories.position, 
  cscart_categories.status, 
  cscart_categories.company_id, 
  cscart_categories.storefront_id, 
  cscart_categories.company_id, 
  cscart_seo_names.name as seo_name, 
  cscart_seo_names.path as seo_path 
FROM 
  cscart_categories 
  LEFT JOIN cscart_category_descriptions ON cscart_categories.category_id = cscart_category_descriptions.category_id 
  AND cscart_category_descriptions.lang_code = 'de' 
  LEFT JOIN cscart_seo_names ON cscart_seo_names.object_id = cscart_categories.category_id 
  AND cscart_seo_names.type = 'c' 
  AND cscart_seo_names.dispatch = '' 
  AND cscart_seo_names.lang_code = 'de' 
  AND cscart_seo_names.company_id = cscart_categories.company_id 
WHERE 
  1 = 1 
  AND (
    cscart_categories.usergroup_ids = '' 
    OR FIND_IN_SET(
      0, cscart_categories.usergroup_ids
    ) 
    OR FIND_IN_SET(
      1, cscart_categories.usergroup_ids
    )
  ) 
  AND cscart_categories.status IN ('A') 
  AND cscart_categories.id_path LIKE '41/%' 
  AND cscart_categories.storefront_id IN (0, 1) 
ORDER BY 
  cscart_categories.is_trash asc, 
  cscart_categories.position asc, 
  cscart_category_descriptions.category asc

Query time 0.00157

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "15.57"
    },
    "ordering_operation": {
      "using_temporary_table": true,
      "using_filesort": true,
      "nested_loop": [
        {
          "table": {
            "table_name": "cscart_categories",
            "access_type": "range",
            "possible_keys": [
              "c_status",
              "id_path"
            ],
            "key": "id_path",
            "used_key_parts": [
              "id_path"
            ],
            "key_length": "767",
            "rows_examined_per_scan": 33,
            "rows_produced_per_join": 0,
            "filtered": "2.00",
            "index_condition": "(`dbggbern`.`cscart_categories`.`id_path` like '41/%')",
            "cost_info": {
              "read_cost": "15.04",
              "eval_cost": "0.07",
              "prefix_cost": "15.11",
              "data_read_per_join": "2K"
            },
            "used_columns": [
              "category_id",
              "parent_id",
              "id_path",
              "company_id",
              "usergroup_ids",
              "status",
              "position",
              "is_trash",
              "storefront_id"
            ],
            "attached_condition": "(((`dbggbern`.`cscart_categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`dbggbern`.`cscart_categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`dbggbern`.`cscart_categories`.`usergroup_ids`))) and (`dbggbern`.`cscart_categories`.`status` = 'A') and (`dbggbern`.`cscart_categories`.`storefront_id` in (0,1)))"
          }
        },
        {
          "table": {
            "table_name": "cscart_category_descriptions",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "category_id",
              "lang_code"
            ],
            "key_length": "9",
            "ref": [
              "dbggbern.cscart_categories.category_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.17",
              "eval_cost": "0.07",
              "prefix_cost": "15.34",
              "data_read_per_join": "2K"
            },
            "used_columns": [
              "category_id",
              "lang_code",
              "category"
            ]
          }
        },
        {
          "table": {
            "table_name": "cscart_seo_names",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY",
              "dispatch"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "object_id",
              "type",
              "dispatch",
              "lang_code",
              "company_id"
            ],
            "key_length": "210",
            "ref": [
              "dbggbern.cscart_categories.category_id",
              "const",
              "const",
              "const",
              "dbggbern.cscart_categories.company_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.17",
              "eval_cost": "0.07",
              "prefix_cost": "15.57",
              "data_read_per_join": "1K"
            },
            "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
56 41 41/56 Sets 10 A 1 1 sets 41
43 41 41/43 Displays 20 A 1 1 displays 41
47 41 41/47 Boosters 30 A 1 1 boosters 41
42 41 41/42 Structure Decks 35 A 1 1 structure-decks 41
48 41 41/48 Weitere Produkte 40 A 1 1 weitere-produkte 41
651 56 41/56/651 Phantom Revenge 101 A 1 1 phantom-revenge 41/56
648 56 41/56/648 Retro Pack 2 102 A 1 1 retro-pack-2 41/56
665 56 41/56/665 Doom of Dimensions 103 A 1 1 doom-of-dimensions 41/56
624 56 41/56/624 Justice Hunters 104 A 1 1 justice-hunters 41/56
595 56 41/56/595 Duelist's Advance 105 A 1 1 duelists-advance 41/56
594 56 41/56/594 Battle of Legends: Monster Mayhem 106 A 1 1 battle-of-legends-monster-mayhem 41/56
580 56 41/56/580 Alliance Insight 107 A 1 1 alliance-insight 41/56
566 56 41/56/566 Maze of the Master 108 A 1 1 maze-of-the-master 41/56
554 56 41/56/554 Supreme Darkness 109 A 1 1 supreme-darkness 41/56
511 56 41/56/511 Crossover Breakers 110 A 1 1 crossover-breakers 41/56
493 56 41/56/493 Rage Of The Abyss 111 A 1 1 rage-of-the-abyss 41/56
481 56 41/56/481 Light of Destruction Unlimited Reprint 112 A 1 1 light-of-destruction-unlimited-reprint 41/56
461 56 41/56/461 The Infinite Forbidden 113 A 1 1 the-infinite-forbidden 41/56
492 56 41/56/492 Battles of Legend: Terminal Revenge 114 A 1 1 battles-of-legend-terminal-revenge 41/56
421 56 41/56/421 Legacy of Destruction 115 A 1 1 legacy-of-destruction 41/56
411 56 41/56/411 Phantom Nightmare 116 A 1 1 phantom-nightmare 41/56
396 56 41/56/396 Maze Of Millenia 117 A 1 1 maze-of-millenia 41/56
412 56 41/56/412 Valiant Smashers 118 A 1 1 valiant-smashers 41/56
358 56 41/56/358 Age of Overlord 119 A 1 1 age-of-overlord 41/56
345 56 41/56/345 Legendary Duelists: Soulburning Volcano 120 A 1 1 legendary-duelists-soulburning-volcano 41/56
344 56 41/56/344 Duelist Nexus 121 A 1 1 duelist-nexus 41/56
343 56 41/56/343 Battles of Legend: Monstrous Revenge 122 A 1 1 battles-of-legend-monstrous-revenge 41/56
342 56 41/56/342 Wild Survivors 123 A 1 1 wild-survivors 41/56
307 56 41/56/307 Cyberstorm Access 124 A 1 1 cyberstorm-access 41/56
280 56 41/56/280 25th Anniversary Edition 125 A 1 1 25th-anniversary-edition 41/56
279 56 41/56/279 Maze of Memories 126 A 1 1 maze-of-memories 41/56
264 56 41/56/264 Photon Hypernova 127 A 1 1 photon-hypernova 41/56
263 56 41/56/263 Amazing Defenders 128 A 1 1 amazing-defenders 41/56
236 56 41/56/236 Battles of Legend: Crystal Revenge 129 A 1 1 battles-of-legend-crystal-revenge 41/56
262 56 41/56/262 Holiday Box Magnificent Mavens 2022 130 A 1 1 holiday-box-magnificent-mavens-2022 41/56
239 56 41/56/239 Darkwing Blast 131 A 1 1 darkwing-blast 41/56
203 56 41/56/203 Tactical Masters 132 A 1 1 tactical-masters 41/56
223 56 41/56/223 Power of the Elements 133 A 1 1 power-of-the-elements 41/56
201 56 41/56/201 Legendary Duelists: Duels from the Deep 134 A 1 1 legendary-duelists-duels-from-the-deep 41/56
204 56 41/56/204 Dimension Force 135 A 1 1 dimension-force 41/56
193 56 41/56/193 2022 Ghosts from the Past 136 A 1 1 2022-ghosts-from-the-past 41/56
172 56 41/56/172 Battle of Chaos 137 A 1 1 battle-of-chaos 41/56
163 56 41/56/163 The Grand Creators 138 A 1 1 the-grand-creators 41/56
104 56 41/56/104 Brothers of Legend 139 A 1 1 brothers-of-legend 41/56
105 56 41/56/105 Burst of Destiny 140 A 1 1 burst-of-destiny 41/56
153 56 41/56/153 Legendary Duelists: Synchro Storm 141 A 1 1 legendary-duelists-8 41/56
109 56 41/56/109 Dawn of Majesty 142 A 1 1 dawn-of-majesty 41/56
139 56 41/56/139 King's Court 143 A 1 1 kings-court 41/56
86 56 41/56/86 Lightning Overdrive 144 A 1 1 lightning-overdrive 41/56
205 56 41/56/205 Ancient Guardians 145 A 1 1 ancient-guardians 41/56
207 56 41/56/207 Ghosts from the Past 146 A 1 1 ghosts-from-the-past 41/56
85 56 41/56/85 Blazing Vortex 147 A 1 1 blazing-vortex 41/56
206 56 41/56/206 Genesis Impact 148 A 1 1 genesis-impact 41/56
78 56 41/56/78 Phantom Rage 149 A 1 1 phantom-rage 41/56
72 56 41/56/72 Legendary Duelists: Rage of Ra 150 A 1 1 legendary-duelists-rage-of-ra 41/56